18.10.2011, 19:04
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;
}