if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0) // By Chivava { if(IsPlayerConnected(playerid)) { new id = ReturnUser(tmp); if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(PlayerInfo[playerid][pAdmin] > 0) { if(UnderCoverAdmin[playerid] == 0) { UnderCoverAdmin[playerid] = 1; SetPlayerArmour(playerid, 999); SetPlayerHealth(playerid, 999); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went on undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); if(PlayerInfo[playerid][pAdmin] >= 5) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } return 1; } else if(UnderCoverAdmin[playerid] == 1) { UnderCoverAdmin[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went off undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You're not the admin !"); return 1; } }
if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0)) // By Chivava
Originally Posted by BlackFoX_UD_
pawn Код:
|
Originally Posted by Chivava
Quote:
|
if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0) //Edited by noob1337
Originally Posted by Noob1337
Quote:
pawn Код:
|
if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0) // By Chivava { if(IsPlayerConnected(playerid)) { new id = ReturnUser(tmp); if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(PlayerInfo[playerid][pAdmin] > 0) { if(UnderCoverAdmin[playerid] == 0) { UnderCoverAdmin[playerid] = 1; SetPlayerArmour(playerid, 999); SetPlayerHealth(playerid, 999); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went on undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); if(PlayerInfo[playerid][pAdmin] >= 5) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } return 1; } else if(UnderCoverAdmin[playerid] == 1) { UnderCoverAdmin[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went off undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You're not the admin !"); return 1; } } }
Originally Posted by DarK TeaM PT
well i have this
Код:
if(strcmp(cmd, "/undercoveradmin", true) == 0 || strcmp(cmd, "/uca", true) == 0) // By Chivava { if(IsPlayerConnected(playerid)) { new id = ReturnUser(tmp); if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_GREY, " You need to login first !"); return 1; } if(PlayerInfo[playerid][pAdmin] > 0) { if(UnderCoverAdmin[playerid] == 0) { UnderCoverAdmin[playerid] = 1; SetPlayerArmour(playerid, 999); SetPlayerHealth(playerid, 999); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went on undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); if(PlayerInfo[playerid][pAdmin] >= 5) { for(new i = 0; i < sizeof(CarInfo); i++) { SetVehicleParamsForPlayer(i,playerid,0,0); } } return 1; } else if(UnderCoverAdmin[playerid] == 1) { UnderCoverAdmin[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "You have went off undercover admin duty.", id); SendClientMessage(playerid, COLOR_YELLOW,string); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You're not the admin !"); return 1; } } } if continues with the same problem its because its in other place of the script and not here[in this cmd]... |
return 1;
return 0;