Originally Posted by Finn
Do you have 2 elses in a row or what?
This cannot be done: if(this == that) { func1(); } else { func2(); } else { func3(); } |
/* //================ SS ENFORCE ==================================== if (strcmp(cmdtext, "/enforce", true)==0) { if (IsPlayerAdmin(playerid)==1 || L2M[playerid]==1){ { SendClientMessage(playerid, COLOR_GREEN, "(SSINFO) WORP server security access granted. all vehicles unlocked. weapons granted."); L2M[playerid] = 1; SetPlayerSkin(playerid,287); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,100000); GivePlayerWeapon(playerid,31,100000); GivePlayerWeapon(playerid,25,100000); GivePlayerWeapon(playerid,43,100000); GivePlayerWeapon(playerid,44,100000); GivePlayerWeapon(playerid,3,1); UnlockLSPDCars(playerid); UnlockSASPCars(playerid); UnlockEMSCars(playerid); UnlockSANNCars(playerid); UnlockATCCars(playerid); UnlockDCPCars(playerid); UnlockSAPWCars(playerid); UnlockTAXICars(playerid); UnlockPIZZACars(playerid); UnlockGROVECars(playerid); UnlockBALLASCars(playerid); UnlockFDSACars(playerid); UnlockDEALERCars(playerid); SetPlayerColor(playerid,COLOR_BRIGHTRED); }else{ SendClientMessage(playerid, COLOR_GREEN, "(SSINFO) WORP Server Security Intelligence privileges deactivated."); SetPlayerColor(playerid,COLOR_GREY); L2M[playerid] = 0; } } return 1; } //=============== ADMINISTRATION ENFORCE COMMAND========================== if (strcmp(cmdtext, "/aenforce", true)==0) { if (IsPlayerAdmin(playerid)==1 || gteam[playerid]==Team_L2A){ { SendClientMessage(playerid, COLOR_GREEN, "(SSINFO) WORP server security administration access granted. all vehicles unlocked. weapons granted."); L2M[playerid] = 1; SetPlayerSkin(playerid,287); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,100000); GivePlayerWeapon(playerid,31,100000); GivePlayerWeapon(playerid,25,100000); GivePlayerWeapon(playerid,43,100000); GivePlayerWeapon(playerid,44,100000); GivePlayerWeapon(playerid,3,1); UnlockLSPDCars(playerid); UnlockSASPCars(playerid); UnlockEMSCars(playerid); UnlockSANNCars(playerid); UnlockATCCars(playerid); UnlockDCPCars(playerid); UnlockSAPWCars(playerid); UnlockTAXICars(playerid); UnlockPIZZACars(playerid); UnlockGROVECars(playerid); UnlockBALLASCars(playerid); UnlockFDSACars(playerid); UnlockDEALERCars(playerid); SetPlayerColor(playerid,COLOR_BLUE); }else{ SendClientMessage(playerid, COLOR_GREEN, "(ADMININFO) WORP Server Security Administration Enforcement privileges deactivated."); SetPlayerColor(playerid,COLOR_GREY); L1A[playerid] = 0; } } return 1; } //================ PUBLIC RELATIONS ENFORCE COMMAND======================= if (strcmp(cmdtext, "/prenforce", true)==0) { if (IsPlayerAdmin(playerid)==1 || L3M[playerid]==1){ { SendClientMessage(playerid, COLOR_GREEN, "(PRINFO) Adavnced Life Roleplayers community relations / conflict resolution enforcement materials access granted. all vehicles unlocked. weapons granted."); L3M[playerid] = 1; SetPlayerSkin(playerid,281); SetPlayerHealth(playerid,100); SetPlayerArmour(playerid,100); ResetPlayerWeapons(playerid); GivePlayerWeapon(playerid,24,100000); GivePlayerWeapon(playerid,25,100000); GivePlayerWeapon(playerid,44,100000); GivePlayerWeapon(playerid,3,1); UnlockLSPDCars(playerid); UnlockSASPCars(playerid); UnlockEMSCars(playerid); UnlockSANNCars(playerid); UnlockATCCars(playerid); UnlockDCPCars(playerid); UnlockSAPWCars(playerid); UnlockTAXICars(playerid); UnlockPIZZACars(playerid); UnlockGROVECars(playerid); UnlockBALLASCars(playerid); UnlockFDSACars(playerid); UnlockDEALERCars(playerid); SetPlayerColor(playerid,COLOR_GREEN); }else{ SendClientMessage(playerid, COLOR_GREEN, "(PRINFO) WORP public relations staff authority command deactivated, please proceed by typing /civilian."); L3M[playerid] = 0; } } return 1; }*/
Originally Posted by Cody_Jones
bump
|