29.04.2011, 17:56
Vou fazer uma base, adapte ao seu sistema:
pawn Код:
if( !strcmp( cmdtext, "/contar", true ) )
{
new sCommand[ 256 ];
sCommand = strtok( cmdtext, idx );
if( !strlen( sCommand ) )
{
SendClientMessage( playerid, 0xFFF000AA, "Uso correto: /contar 9" );
return true;
}
if( strcmp( sCommand, "9", true ) == 0 )
{
//Funзхes
return true;
}
else
{
SendClientMessage( playerid, 0xFFF000AA, "Vocк nгo pode usar outro nъmero, sу 9. (/contar 9)" );
}
return true;
}