pawn Код:
/*---------------------------------
-- :) --
-- --
-- Made By V1ceC1ty --
-- anti countspam by Radi --
-- --
-- :) --
---------------------------------*/
#include <a_samp>
#define COLOR_BLUE 0x0259EAFF
forward One();
forward Two();
forward Three();
forward Four();
forward Five();
forward GoGoGo();
forward countspam2();
new countspam[MAX_PLAYERS];
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/count", cmdtext, true, 10) == 0)
{
if(countspam[playerid]==0)
{
SetTimer("Five", 1000, 0);
SetTimer("Four", 2000, 0);
SetTimer("Three", 3000, 0);
SetTimer("Two", 4000, 0);
SetTimer("One", 5000, 0);
SetTimer("GoGoGo", 6000, 0);
countspam[playerid]=1;
SetTimer("countspam2",120000,0);
}
else
{
SendClientMessage(playerid,COLOR_BLUE, "Please wait before using this Command again.");
}
return 1;
}
return 0;
}
public Five()
{
GameTextForAll("~h~~h~~h~5",2000,3);
return 1;
}
public Four()
{
GameTextForAll("~h~~h~~h~5~n~~b~4",2000,3);
return 1;
}
public Three()
{
GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3",2000,3);
return 1;
}
public Two()
{
GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2",2000,3);
return 1;
}
public One()
{
GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1",2000,3);
return 1;
}
public GoGoGo()
{
GameTextForAll("~h~~h~~h~5~n~~b~4~n~~y~3~n~~p~2~n~~r~1~n~~n~~>~~g~GO ~b~GO ~r~GO~y~!~<~",3000,3);
return 1;
}