07.12.2014, 15:52
It's called, with a command:
Код:
if (strcmp(cmd, "/stats", true) == 0) { if(IsPlayerConnected(playerid)) { if (gPlayerLogged[playerid] != 0) { ShowStats(playerid,playerid); } else { SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[Kappa]: {ffffff}Ne pare rau, dar trebuie sa fi Logat pentru a utiliza aceasta comanda."); } } return 1; }
Код:
public ShowStats(playerid,targetid) { if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid)) { [....] //here is the code } }