18.09.2011, 15:20
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/contar", cmdtext, true, 10) == 0)
{
GameTextForAll("~n~ ~n~ ~n~ ~w~Uma contagem foi iniciada!", 4000, 3);
SetTimer("GameUm", 1500, false);
SendClientMessage(playerid, -1, "Vocк comeзou uma contagem.");
return 1;
}
return 1;
pawn Код:
forward GameUm(allplayers);
public GameUm(allplayers)
{
GameTextForAll("~b~3", 4000, 3);
SetTimer("GameDois", 1500, false);
return 1;
}
forward GameDois(allplayers);
public GameDois(allplayers)
{
GameTextForAll("~g~2", 4000, 3);
SetTimer("GameTres", 1500, false);
return 1;
}
forward GameTres(allplayers);
public GameTres(allplayers)
{
GameTextForAll("~r~1", 4000, 3);
SetTimer("GameRounde", 1500, false);
return 1;
}
forward GameRounde(allplayers);
public GameRounde(allplayers)
{
GameTextForAll("~g~Roundi Uam!", 4000, 3);
SetTimer("GameGo", 1500, false);
return 1;
}
forward GameGo(allplayers);
public GameGo(allplayers)
{
GameTextForAll("~p~Faiti", 4000, 3);
return 1;
}