// topo do gm new Text:CMDtext[MAX_PLAYERS]; //OnGameModeInit TextDrawCreate(... //CommandPerf.. if(!success) //linha 6505 { TextDrawSetString(CMDtxt[playerid], "Comando invalido, digite /cmds."); TextDrawShowForPlayer(playerid, CMDtxt[playerid]); SetTimerEx("@HideWrongCommand", 2000, false, "i", playerid); return 1; }
public OnPlayerCommandPerformed(playerid, cmdtext[], success) { new CMDtxt[128]; if(!success) //linha 6505 { TextDrawSetString(CMDtxt, "Comando invalido, digite /cmds."); //linha 6507 TextDrawShowForPlayer(playerid, CMDtxt); //linha 6508 SetTimerEx("@HideWrongCommand", 2000, false, "i", playerid); return 1; } return 1; }