rendered paste body if(strcmp(cmd, "/tod", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /tod [timeofday] (0-23)"); return 1; } new hour; hour = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 3) { SetWorldTime(hour); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Error] You're not an administrator/correct level."); } } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/setadmin", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /setadmin [playerid] [adminlevel]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 3) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { PlayerInfo[para1][pAdmin] = level; format(string, sizeof(string), "[Info] %s has just made you administrator level: %d.", GetPlayerNameEx(playerid),level); SendClientMessage(para1, COLOR_WHITE, string); format(string, sizeof(string), "[Info] You have made %s an administrator - Level: %d.", GetPlayerNameEx(para1),level); SendClientMessage(playerid, COLOR_WHITE, string); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "You're not an administrator/correct level."); } } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/aresetfaction", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Usage] /aresetfaction [factionid]"); return 1; } new factionid = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 3) { new rank; format(string, sizeof(string), "Faction%d",factionid); strmid(DynamicFactions[factionid][fName], string, 0, strlen(string), 255); DynamicFactions[factionid][fX] = 0.0; DynamicFactions[factionid][fY] = 0.0; DynamicFactions[factionid][fZ] = 0.0; DynamicFactions[factionid][fMaterials] = 0; DynamicFactions[factionid][fDrugs] = 0; DynamicFactions[factionid][fBank] = 0; rank = 1; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank1], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank2], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank3], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank4], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank5], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank6], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank7], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank8], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank9], string, 0, strlen(string), 255); rank ++; format(string, sizeof(string), "Rank%d",rank); strmid(DynamicFactions[factionid][fRank10], string, 0, strlen(string), 255); DynamicFactions[factionid][fSkin1] = 0; DynamicFactions[factionid][fSkin2] = 0; DynamicFactions[factionid][fSkin3] = 0; DynamicFactions[factionid][fSkin4] = 0; DynamicFactions[factionid][fSkin5] = 0; DynamicFactions[factionid][fSkin6] = 0; DynamicFactions[factionid][fSkin7] = 0; DynamicFactions[factionid][fSkin8] = 0; DynamicFactions[factionid][fSkin9] = 0; DynamicFactions[factionid][fSkin10] = 0; DynamicFactions[factionid][fJoinRank] = 0; DynamicFactions[factionid][fUseSkins] = 0; DynamicFactions[factionid][fType] = 0; DynamicFactions[factionid][fRankAmount] = 0; DynamicFactions[factionid][fUseColor] = 0; format(string, sizeof(string), "0xFFFFFFFF"); strmid(DynamicFactions[factionid][fColor], string, 0, strlen(string), 255); format(string, sizeof(string), "[Info] You have reset Faction ID: %d.", factionid); SendClientMessage(playerid, COLOR_ADMINCMD, string); SaveDynamicFactions(); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator or an administrator with the required level."); } } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/gmx", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { GameModeRestart(); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator/correct level!"); } } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/acivilianspawn", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); CivilianSpawn[X] = x; CivilianSpawn[Y] = y; CivilianSpawn[Z] = z; CivilianSpawn[World] = GetPlayerVirtualWorld(playerid); CivilianSpawn[Interior] = GetPlayerInterior(playerid); CivilianSpawn[Angle] = angle; SaveCivilianSpawn(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Civilian Spawnpoint."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator/correct level."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/apositioncmds", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[GA 1] - [Teleports] /agotobuilding - /agotohouse - /agotobusiness - /agotofmatsstorage - /agotofdrugsstorage"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[GA 1] - [Teleports] /agotodrivingtestpos - /agotoflyingtestpos - /agotobank - /agotoweaponlicpos - /agotopolicearrestpos"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[GA 1] - [Teleports] /agotopolicedutypos"); SendClientMessage(playerid,COLOR_LIGHTYELLOW2,"[LA 3] - /adrivingtestpos - /aflyingtestpos - /abankpos - /aweaponlicensepos - /apolicearrestpos - /apolicedutypos"); } else { SendClientMessage(playerid,COLOR_RED,"[Error] You're not an administrator/correct level!"); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/adrivingtestpos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); DrivingTestPosition[X] = x; DrivingTestPosition[Y] = y; DrivingTestPosition[Z] = z; DrivingTestPosition[World] = GetPlayerVirtualWorld(playerid); DrivingTestPosition[Interior] = GetPlayerInterior(playerid); DrivingTestPosition[Angle] = angle; MoveStreamPickup(DrivingTestPosition[PickupID],DrivingTestPosition[X],DrivingTestPosition[Y],DrivingTestPosition[Z]); SaveDrivingTestPosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Driving Test Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator/correct level."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/aflyingtestpos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); FlyingTestPosition[X] = x; FlyingTestPosition[Y] = y; FlyingTestPosition[Z] = z; FlyingTestPosition[World] = GetPlayerVirtualWorld(playerid); FlyingTestPosition[Interior] = GetPlayerInterior(playerid); FlyingTestPosition[Angle] = angle; MoveStreamPickup(FlyingTestPosition[PickupID],FlyingTestPosition[X],FlyingTestPosition[Y],FlyingTestPosition[Z]); SaveFlyingTestPosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Flying Test Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/abankpos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); BankPosition[X] = x; BankPosition[Y] = y; BankPosition[Z] = z; BankPosition[World] = GetPlayerVirtualWorld(playerid); BankPosition[Interior] = GetPlayerInterior(playerid); BankPosition[Angle] = angle; MoveStreamPickup(BankPosition[PickupID],BankPosition[X],BankPosition[Y],BankPosition[Z]); SaveBankPosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Bank Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/aweaponlicensepos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); WeaponLicensePosition[X] = x; WeaponLicensePosition[Y] = y; WeaponLicensePosition[Z] = z; WeaponLicensePosition[World] = GetPlayerVirtualWorld(playerid); WeaponLicensePosition[Interior] = GetPlayerInterior(playerid); WeaponLicensePosition[Angle] = angle; MoveStreamPickup(WeaponLicensePosition[PickupID],WeaponLicensePosition[X],WeaponLicensePosition[Y],WeaponLicensePosition[Z]); SaveWeaponLicensePosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Weapon License Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/apolicearrestpos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); PoliceArrestPosition[X] = x; PoliceArrestPosition[Y] = y; PoliceArrestPosition[Z] = z; PoliceArrestPosition[World] = GetPlayerVirtualWorld(playerid); PoliceArrestPosition[Interior] = GetPlayerInterior(playerid); PoliceArrestPosition[Angle] = angle; SavePoliceArrestPosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Police Arrest Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator."); } return 1; }///////////////////////////////////////////////////////////////////////////////////////////////// if(strcmp(cmd, "/apolicedutypos", true) == 0) { if (PlayerInfo[playerid][pAdmin] >= 3) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); new Float:angle; GetPlayerFacingAngle(playerid, angle); PoliceDutyPosition[X] = x; PoliceDutyPosition[Y] = y; PoliceDutyPosition[Z] = z; PoliceDutyPosition[World] = GetPlayerVirtualWorld(playerid); PoliceDutyPosition[Interior] = GetPlayerInterior(playerid); PoliceDutyPosition[Angle] = angle; SavePoliceDutyPosition(); SendClientMessage(playerid, COLOR_ADMINCMD, "You have successfully set the Police Duty Position."); } else { SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "You're not an administrator."); } return 1; }