Need some help with commands
#2

pawn Код:
CMD:equip(playerid, params[])
{
    if( !strcmp( params, "M4A1", true) ) // comparing the params with 'M4A1', if theyre the same
    {
                // this will get called
        // do your stuff in here when player types '/equip M4a1'
    }
    if( !strcmp( params, "MP5", true) )
    {
   
    }
    if( !strcmp( params, "Shotgun", true) )
    {
   
    }
    return 1;
}
This should work.
Reply


Messages In This Thread
Need some help with commands - by rubygta - 18.10.2011, 18:59
Re: Need some help with commands - by Wesley221 - 18.10.2011, 19:04
Re: Need some help with commands - by rubygta - 18.10.2011, 19:43

Forum Jump:


Users browsing this thread: 3 Guest(s)