Need a command 2
#7

Sort of, and the easiest way to do that, is dcmd

pawn Код:
dcmd_killmsg(playerid,params[])
{
    if((!strcmp(params,"1",true)) || (!strcmp(params,"\"1\"",true))) {
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(IsPlayerConnected(i)){
    GivePlayerMoney(i,10000);
    }
    }  
    return 1;
    }

    if((!strcmp(params,"2",true)) || (!strcmp(params,"\"2\"",true))) {
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(IsPlayerConnected(i)){
    GivePlayerMoney(i,100000);
    }
    }  
    return 1;
    }

    if((!strcmp(params,"3",true)) || (!strcmp(params,"\"3\"",true))) {
    for(new i=0;i<MAX_PLAYERS;i++) {
    if(IsPlayerConnected(i)){
    GivePlayerMoney(i,1000000);
    }
    }  
    return 1;
    }
return 1;
}
That should work, sorry but I mainly use dcmd.
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: 1 Guest(s)