21.10.2013, 23:54
pawn Код:
CMD:refund(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, -1, "Usage: /Refund < Amount >");
new amount = strval(params);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i) || GetPlayerScore(i) > 1000) continue;
SetPlayerScore(i, GetPlayerScore(i) + 1000); // Give players with less than 1000 score 1000 score
}
return 1;
}