[HELP]An Exception in this function
#1

Hi, i'm have a question about this function...:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){

if(PlayerInMinigame[playerid] == 1 && PlayerInfo[playerid][Level] < 4) return
GameTextForPlayer(playerid,"~r~/KILL PARA SALIR DEL MINIJUEGO",5000,5);
I need this function to hidden the commands during a minigame, because it's necesary, but i need the /kill command for the skip, and it's bloqued too... I trying whit another condition...:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]){

if(PlayerInMinigame[playerid] == 1 && PlayerInfo[playerid][Level] < 4 && !strcmp(cmdtext, "/kill", true)) return
GameTextForPlayer(playerid,"~r~/KILL PARA SALIR DEL MINIJUEGO",5000,5);
But I can't get results... all comands are show... ¬¬' I need help to fix this problem, or any recomendation :3
Thnx... adn sorry for my bad english xD
Reply
#2

You need commands disabled if they are in a minigame except for the /kill command?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)