30.09.2011, 20:19
I want that when some1 do /evento [motos-amatar-autos-carrera]
works
like /evento motos & do something
/evento amatar & do something
works
like /evento motos & do something
/evento amatar & do something
pawn Code:
if(strcmp(cmd, "/evento", true) == 0)
{
new botcmd;
tmp = strtok(cmdtext, idx);
if(!IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW, "Necesitas ser RCON!");
return 1;
}
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_YELLOW, "Usage: /evento motos");
SendClientMessage(playerid, COLOR_YELLOW, "Usage: /evento amatar");
SendClientMessage(playerid, COLOR_YELLOW, "Usage: /evento autos");
SendClientMessage(playerid, COLOR_YELLOW, "Usage: /evento carrera");
return 1;
}