26.07.2018, 20:04
where you using this code, in what public or where?
Код:
if(AccData[playerid][JailDuration] > -1) { if( killedbypd[playerid] ) // Didn't evade, Already in jail { killedbypd[playerid] = false; } else { // Jail the player injail[playerid] = 1; SendClientMessage(playerid, COLOR_FREEROAM, "You'll have to finish your jail time"); SetPlayerWantedLevel(playerid, 0); SetPlayerInterior(playerid, 6); SetPlayerPos(playerid, 264.3227,81.6192,1001.0391); SetPlayerFacingAngle(playerid, 296.0341); new string[80]; format(string, sizeof(string), "Anti-Evade: %s has been jailed for %d seconds!", GetName(playerid), AccData[playerid][JailDuration]); SendClientMessageToAll(COLOR_POLICE, string); jailtimer[playerid] = SetTimerEx("jail", 1000, true, "i", playerid); // Decrease time each second // Now Set his game stats to FreeRoaming infreeroam[playerid] = 1; SF[playerid] = 1; SendClientMessage(playerid, COLOR_FREEROAM,"You'll be spawned in Freeroam gamemode (San Fierro)"); new stringesi[65]; format(stringesi, sizeof(stringesi), "%s has joined Freeroam gamemode (San Fierro)", GetName(playerid)); SendClientMessageToAll(COLOR_FREEROAM, stringesi); lobby[playerid] = 0; CreateDynamicMapIcon(-2625.9368,208.9869,4.6143, 6, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2664.9614,639.6124,14.4531, 22, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1593.9250,716.2734,-5.2422, 30, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1786.8904,1208.3572,25.1250, 8, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2173.1907,679.7965,55.1633, 58, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1671.8628,1338.5602,7.1875, 60, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2374.8813,910.1338,45.4453, 45, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1980.3044,288.4990,35.1719, 55, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2491.6021,-197.0443,25.6172, 8, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1673.4355,415.6969,7.1797, 51, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1704.5774,785.6741,25.2780, 52, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0); // ========================================= } } if(GetPlayerWantedLevel(playerid) > 0) { // Want the player LS[playerid] = 1; SendClientMessage(playerid, COLOR_FREEROAM, "You won't be able to evade"); SetPlayerInterior(playerid, 0); SetPlayerColor(playerid, COLOR_WANTED); new string[80]; format(string, sizeof(string), "Anti-Evade: %s has been re-wanted again to level %d !", GetName(playerid), GetPlayerWantedLevel(playerid)); SendClientMessageToAll(COLOR_POLICE, string); SetPlayerPos(playerid, 1727.9077,-1668.2974,22.6094); SetPlayerFacingAngle(playerid, 33.4079); infreeroam[playerid] = 1; SendClientMessage(playerid, COLOR_FREEROAM,"You'll be spawned in Freeroam gamemode (San Fierro)"); new stringesi[65]; format(stringesi, sizeof(stringesi), "%s has joined Freeroam gamemode (San Fierro)", GetName(playerid)); SendClientMessageToAll(COLOR_FREEROAM, stringesi); lobby[playerid] = 0; CreateDynamicMapIcon(-2625.9368,208.9869,4.6143, 6, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2664.9614,639.6124,14.4531, 22, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1593.9250,716.2734,-5.2422, 30, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1786.8904,1208.3572,25.1250, 8, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2173.1907,679.7965,55.1633, 58, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1671.8628,1338.5602,7.1875, 60, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2374.8813,910.1338,45.4453, 45, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1980.3044,288.4990,35.1719, 55, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-2491.6021,-197.0443,25.6172, 8, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1673.4355,415.6969,7.1797, 51, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); CreateDynamicMapIcon(-1704.5774,785.6741,25.2780, 52, 0, 0, 0, playerid, 100000000.0, MAPICON_LOCAL); SetTimerEx("unwant", 480000, false, "i", playerid); SendClientMessage(playerid, COLOR_YELLOW, "You'll lose your wanted level after 8 minutes"); SetPlayerSkillLevel(playerid,WEAPONSKILL_PISTOL,0); SetPlayerColor(playerid, COLOR_WANTED); // ========================================= }