02.06.2011, 00:13
pawn Код:
if(!strcmp(cmdtext,"/congelar", true))
{
GameTextForPlayer( playerid, "~r~Congelado", 5000, 5 );
TogglePlayerControllable( playerid, 0 );
SetTimerEx( "@kDescongelar", 2000, false, "i", playerid );
SetPlayerVirtualWorld(playerid, 10);
return 1;
}
public @kDescongelar( playerid )
{
GameTextForPlayer( playerid, "~r~Descongelado", 5000, 5 );
TogglePlayerControllable( playerid, 1 );
SetPlayerVirtualWorld(playerid, 0);
return true;
}