strcmp y zcmd
#4

Pones los cmds en el callback de ZCMD:

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
if(success)
{
return 1;
}  
//desde aca
if(strcmp(cmdtext, "/TuComando", true) == 0)
{
// ... Acciones
return 1;
}
if(strcmp(cmdtext, "/TuComando2etc", true) == 0)
{
// ... Acciones
return 1;
}
// ...
return 0;
}
Reply


Messages In This Thread
strcmp y zcmd - by Jeree10 - 19.08.2014, 17:24
Respuesta: strcmp y zcmd - by Carlos_Villareal - 19.08.2014, 17:37
Respuesta: strcmp y zcmd - by Whyd - 19.08.2014, 18:34
Re: strcmp y zcmd - by LeonardoEscobar - 19.08.2014, 18:39
Respuesta: strcmp y zcmd - by Goncho28 - 19.08.2014, 20:12
Respuesta: strcmp y zcmd - by !R1Ch@rD! - 19.08.2014, 23:57

Forum Jump:


Users browsing this thread: 1 Guest(s)