01.12.2011, 06:44
Most people suggest ZCMD , because it is easier?
Basically , you just have to replace "cmdtext" to "params"
like :
thats how easy it is
Credits to https://sampforum.blast.hk/showthread.php?tid=231496
pawn Код:
if( strcmp( cmdtext, "/test", true, 5 ) == 0 )
{
new id;
id = strval( cmdtext );
return SendClientMessage( id, 0xAAAAAA, "Test" );
}
like :
pawn Код:
CMD:test( playerid, params[ ] /* Here are the params */ )
{
new id;
id = strval( params ); // So, cmdtext here turns into params.
return SendClientMessage( id, 0xAAAAAA, "Test" );
}
Credits to https://sampforum.blast.hk/showthread.php?tid=231496