23.10.2017, 09:10
PHP код:
CMD:darcarteira(playerid, params[]){
new id, string[256];
if(1 == Licence[id]){
format(string, sizeof(string), "O %s retirou sua carteira.", Nome(playerid));
SendClientMessage(id,-1, string);
Licence[id] = 0;
return 1;
}
format(string, sizeof(string), "Vocк ganhou uma carteira do %s.", Nome(playerid));
SendClientMessage(id,-1, string);
format(string, sizeof(string), "Vocк deu uma carteira para o %s.", Nome(id));
SendClientMessage(playerid,-1, string);
Licence[id] = 1;
return 1;}
stock Nome(playerid)//Fim do Gamemode
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
return name;
}