01.09.2015, 19:00
PHP Code:
CMD:me(playerid, params[])
{
new funcao[20];
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, -1, "[ ERRO ] {FF0000}Voce nao esta conectado no servidor!");
if(sscanf(params, "s[20]", funcao)) return SendClientMessage(playerid, -1, "[ ERRO ] {FF0000}use: /me [kill, suicidar]");
if(strfind(funcao, "kill", true) != -1 || strfind(funcao, "suicidar", true) != -1)
{
if(gettime() - Tempokill[playerid] < 00)return SendClientMessage(playerid, aa, "You have to wait 3 minouts before you can use the command again!");
Tempokill[playerid] = gettime();
SetPlayerHealth(playerid, 0);
}
return 1;
}