30.08.2011, 19:56
pawn Код:
#include <a_samp>
#include zcmd
#include sscanf2
//arrays
new id;
//forwards
forward Count3(playerid);
forward Count2(playerid);
forward Count1(playerid);
forward CountGo(playerid);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
CMD:count(playerid, params[])
{
if(sscanf(params,"u",id)) return SendClientMessage(playerid,-1,"USE: /count [id]");
if(!IsPlayerConnected(id)) return SendClientMessage(playerid,-1,"Este jogador nгo esta conectado");
SetTimer("Count3",1000,0);
return true;
}
public Count3(playerid)
{
GameTextForPlayer(playerid,"~r~3!",1000,6);
GameTextForPlayer(id,"~r~3!",1000,6);
SetTimer("Count2",1000,0);
return 1;
}
public Count2(playerid)
{
GameTextForPlayer(playerid,"~r~2!",1000,6);
GameTextForPlayer(id,"~r~2!",1000,6);
SetTimer("Count1",1000,0);
}
public Count1(playerid)
{
GameTextForPlayer(playerid,"~y~1!",1000,6);
GameTextForPlayer(id,"~y~1!",1000,6);
SetTimer("CountGo",1000,0);
return 1;
}
public CountGo(playerid)
{
GameTextForPlayer(playerid,"~g~GO!GO!GO!",1000,6);
GameTextForPlayer(id,"~g~GO!GO!GO!",1000,6);
return 1;
}