28.08.2013, 15:21
Faz assim:
Agora um exemplo de comando:
Creditos: Kye
pawn Код:
forward KickPublic(playerid);
public KickPublic(playerid) Kick(playerid);
stock KickWithMessage(playerid, color, message[])
{
SendClientMessage(playerid, color, message);
SetTimerEx("KickPublic", 1000, 0, "d", playerid);
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/kickar", true) == 0)
{
KickWithMessage(playerid, -1, "Foste Kickado.");
return 1;
}