#1

how can i do one command but if you asdd something it change? exemple:
/rad freeze
/rad gw
/rad gm
like this... that if you add freeze or gw/gm or something it will do something?
tell me if it is possible to do it in 1 command... if so explain how and if not just tell no...
Reply
#2

what you mean?
Reply
#3

Quote:
Originally Posted by Roomeo
Посмотреть сообщение
what you mean?
that if you will write a command and add something it will do one thing... but if you will add another... it will do another thing...
like:
Код:
/ap 1
/ap 2
in same command...
Reply
#4

Sorry we don't understand you.

Please Explain more better.
Reply
#5

https://sampwiki.blast.hk/wiki/Fast_Commands
Reply
#6

Don`t know if this`s exactly what you ask for ... but I give it a go. A simple example with /buy command:
pawn Код:
CMD:buy(playerid, params[])
{
    if ( !strcmp( params, "watch" ) )
    {
        //Code here. This is if you use /buy watch command
    }
    if ( !strcmp( params, "cigars" ) )
    {
        //Code here. This is if you use /buy cigars command
    }
    if ( !strcmp( params, "matches" ) )
    {
        //Code here. This is if you use /buy matches command
    }
        return 1;
}
This is in ZCMD ... Hope this is what you asked for.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)