21.03.2011, 14:20
Don`t know if this`s exactly what you ask for ... but I give it a go. A simple example with /buy command:
This is in ZCMD ... Hope this is what you asked for.
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;
}