02.02.2014, 11:29
Queria q esse comando de dar salario fosse para todos os players e nгo sу para quem faz
PHP код:
if(!strcmp(cmdtext,"/darsalario",true)) {
if(pAdmin[playerid] == 1 || pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5){
}
new string[128];
new snd[MAX_PLAYER_NAME];
GetPlayerName(playerid, snd, sizeof snd);
new RandomPay = random(5000 - 725) + 725;
GivePlayerGrana( playerid, RandomPay );
format(string, sizeof string, "Vocк recebeu salario, vб depositar", snd);
SendClientMessageToAll(0xFFFF00AA, string);
return true;
}