24.04.2010, 14:20
и muito Facil
Coloke isso no Inicio Do Seu GM/FS
Agora no public OnPlayerCommand
Agora Vamos Criar um Public
Coloque:Em OnPlayerConnect.
Simples e Fбcil
Vlw Sub_zero tva errado msm
Tutorial By:[full]Garfield
Coloke isso no Inicio Do Seu GM/FS
pawn Код:
forward countspam2();
new countspam[MAX_PLAYERS];
pawn Код:
if(strcmp(cmdtext, "/armor", true) == 0)
{
if(countspam[playerid]==0)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "%s Comprou colete!!( /Armor )", pname);
SendClientMessageToAll(cyan, string);
SetPlayerArmour(playerid,100);
countspam[playerid]=1;
SetTimer("countspam2",30000,0);
}
else
{
SendClientMessage(playerid,COLOR_RED, "Aguarde 30 Segundos para reutilizar esse comando.");
}
return 1;
}
pawn Код:
public countspam2()
{
new playerid;
countspam[playerid]=1;
return 1;
}
pawn Код:
countspawn[playerid]=1;
Vlw Sub_zero tva errado msm
Tutorial By:[full]Garfield