PDA

View Full Version : help? loading objects


eblood1
01/11/2013, 12:55 AM
how i can so when a player go to to //sfa it freeze the player for 5 sec for and it shows Loading objects for 5 secs

Mattakil
01/11/2013, 01:10 AM
CMD:sfa(playerid, params[])
{
SetTimerEx("UnFreeze", 5000, false, i, playerid);
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "Loading objects", 5000, 0);
return 1;
}

forward UnFreeze(playerid);
public UnFreeze(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}

Diogo123
01/11/2013, 01:14 AM
forward CObjetos(playerid)

public CObjetos(playerid)
{
GameTextForPlayer(playerid, "Loading...", 5000, 5);
TogglePlayerControllable(playerid, 1);
return 1;
}


Type the cmds :

TogglePlayerControllable(playerid, 0);
SetTimerEx("CObjetos",3000, false,"i",playerid); .

SAMProductions
01/11/2013, 01:46 AM
Try This:

CMD:sfa(playerid, params[])
{
TogglePlayerControllable(playerid, 0);
SetTimerEx("Unfreeze", 5000, 0, "d", playerid);
GameTextForPlayer(playerid, "~g~Waiting for the Objects to Load", 5000, 3);
return 1;
}

The Forward and Public:

forward Unfreeze(playerid)
public Unfreeze(playerid)
{
TogglePlayerControllable(playerid, 1);
return 1;
}