01.10.2014, 22:44
strcmp:
Exemplo do uso:
zcmd
Crйditos: JonathanFeitosa & iShock
pawn Код:
stock ForcarComando(playerid, cmdtext[])
{
CallRemoteFunction("OnPlayerCommandText", "ds", playerid, cmdtext);
return true;
}
pawn Код:
ForcarComando(playerid, "/admins");//Forзarб o jogador б usar o comando /admins assim que ele entrar
pawn Код:
CMD:comandoid( p, pr[], PlayerID, cmdtext[ 30 ] )
{
if( sscanf( pr, "us[25]", PlayerID, cmdtext ) ) return SendClientMessage( p, -1, #Use /comandoid [ID] );
return OnPlayerCommandReceived( PlayerID, cmdtext ), true;
}