Quote:
Originally Posted by |_MeGaTroN_|
pawn Код:
//Coloque como variavel global new plid, skin;
if(strcmp(cmd, "/aceitar", true) == 0) { new aname[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); skin = strval(tmp); if(IsPlayerConnected(playerid)) { if(convitevida[plid] == 1) { SendClientMessage(plid,Amarelo, "Vocк aceitou o curativo!"); format(string, sizeof(string), "O Player %s(ID: %d) aceitou o curativo.", aname, plid); SendClientMessage(playerid, Amarelo, string); SetPlayerHealth(playerid, 100); GivePlayerMoney(plid, skin); GivePlayerMoney(playerid, -skin); convitevida[plid] = 0; } } return 1; }
|
o gm dele й o da TC [ The Crims ]
esse negocio de plid,skin e o cod n foi ele q fez, ele sу fez uma base. varios comandos sгo assim, q tem isso
ja mandei o cmd pronto