02.02.2014, 11:48
pawn Код:
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;
for(new i = 0; i < MAX_PLAYERS; i++)
{
GivePlayerGrana(i, RandomPay);
}
format(string, sizeof string, "Vocк recebeu salario, vб depositar", snd);
SendClientMessageToAll(0xFFFF00AA, string);
}
return true;
}