else if(strcmp(cmd, "/nomoff", true) == 0) { if(PlayerInfo[playerid][pLevel]<1 {SendClientMessage(playerid, COLOR_USAGE, "{FF6600}[Nom OFF]{99EEFF} Commande disponible a partir du niveau 3");return 1;} new pln[MAX_PLAYER_NAME]; GetPlayerName(playerid,pln,sizeof(pln)); subcmd = strtok(cmdtext, idx); if(CagouleUse[playerid]==0) { CagouleUse[playerid]=1; check_nameTag(playerid); idnomoff[playerid] = 10000+random(99999); SendClientMessage(playerid, COLOR_WHITE, "Nomoff activŠ¹.."); player_refreshCagoule(playerid); return 1; } else if(CagouleUse[playerid]==1) { CagouleUse[playerid]=0; idnomoff[playerid] = 0; check_nameTag(playerid); Delete3DTextLabel(nom_off[playerid]); SendClientMessage(playerid, COLOR_WHITE, "Nomoff desactivŠ¹.."); player_refreshCagoule(playerid); return 1; } return 1; } |