Need a command 2
#3

Its not hard to duplicate the command to change the ammounts,

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;
}
to make it admin only

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;
}

Reply


Messages In This Thread
Need a command 2 - by nuriel8833 - 03.08.2009, 18:04
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 04:37
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 04:55
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:02
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 05:13
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:34
Re: Need a command 2 - by [LL]InstabiC - 04.08.2009, 05:39
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 05:48
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 11:22
Re: Need a command 2 - by nuriel8833 - 04.08.2009, 16:58

Forum Jump:


Users browsing this thread: 2 Guest(s)