12.11.2012, 18:00
pawn Код:
CMD:payforall(playerid, params[])
{
// IF do Admin
if(!strval(params)) return SendClientMessage(playerid, -1, "[INFO] /PayForAll [Quantia]");
if(strval(params) < 0 || strval(params) > 9999999) return SendClientMessage(playerid, -1, "[ERRO] Quantia Invбlida.");
for (new l = 0; l < MAX_PLAYERS; l++)
{
if (IsPlayerConnected(l))
{
GivePlayerMoney(l, strval(params));
}
}
SendClientMessageToAll(-1, " - Algum administrador setou dinheiro para todos.");
return 1;
}