12.11.2012, 18:09
Dificil usar um loop hoje em dia em...
pawn Код:
if (strcmp(cmd,"/payforall",true) == 0)
{
if(JugadorInfo[playerid][jAdmin] >= 6)
{
new grana, new String[128];
tmp = strtok(cmdtext,idx);
grana = strval(tmp);
if (!strval(tmp)) return SendClientMessage(playerid,-1,"Use: /payforall [Money]");
for (new l = 0; l < MAX_PLAYERS; l++ )
{
if(IsPlayerConnected(l))
{
GivePlayerMoney(l, grana);
format(String,128,"You gave $%i for all.",grana);
SendClientMessage(playerid, -1, String);
}
}
}else{
SendClientMessage(playerid,0xBFBFBFAA,"You cant use this command.");
}
return 1;
}