04.08.2009, 04:55
Its not hard to duplicate the command to change the ammounts,
to make it admin only
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/money", cmdtext, true, 6) == 0)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)){
GivePlayerMoney(i,10000);
}
}
return 1;
}
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/money", cmdtext, true, 6) == 0)
{
if(IsPlayerAdmin(playerid)){
for(new i=0;i<MAX_PLAYERS;i++) {
if(IsPlayerConnected(i)){
GivePlayerMoney(i,10000);
}
}
}
return 1;
}
return 1;
}