Jump to content

c0sminvl

Membru
  • Posts

    42
  • Joined

  • Last visited

    Never

Everything posted by c0sminvl

  1. Incearca asa: public OnPlayerCommandText(playerid, cmdtext[]) { if( strcmp(cmdtext, "/vamasf", true)==0) { if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) { MoveObject(vamasf, 57.926933, -1539.014282, 9.126878, 2); GivePlayerMoney(playerid, -1000); SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$"); SetTimerEx("Actiunea", 2 * 1000, 0, "i", playerid); } } if( strcmp(cmdtext, "/vamals", true)==0) { if(PlayerToPoint(25.0,playerid,2128.0864,-1135.3912,25.5855) { MoveObject(vamals, 60.370384, -1526.173584, 9.289394, 2); GivePlayerMoney(playerid, -1000); SendClientMessage(playerid, COLOR_RED, "Vama A Fost Deschisa.Ti-am luat 1000$"); SetTimerEx("Actiuneavamasf", 2 * 1000, 0, "i", playerid); return 1; } } return 0; } Daca tot da warning-urile inseamna ca nu ai publicul PlayerToPoint . Iti recomand sa bagi comanda + obiectele in gamemode.
  2. Sa stii ca nu mi-am dat seama , daca citeai mai atent decat in dialogul asta am kick(playerid) , dar kick se duce si in filterscript-uri.
  3. -------------------------------------
  4. O rezolvare si pentru noi? E cumva de la gTeam ?
  5. [REZOLVAT] Am rezolvat singur.
  6. Am fs-ul asta http://forum.sa-mp.com/showthread.php?t=275365&page=4 , platesc 6 euro cosmote pentru mutarea masei de biliard + bilele si createpolygon-urile. Astept pm-uri .
  7. GangZoneFlashForAll http://wiki.sa-mp.com/wiki/GangZoneFlashForAll
  8. Sau apasa pe butonul F5 si asteapta.
  9. -edit- Am rezolvat singur :-j .
  10. [pawn]public settime(playerid) { //News new string[256],year,month,day; new ServerHour, ServerMinute, ServerSecond; //Get gettime(ServerHour,ServerMinute,ServerSecond); getdate(year, month, day); for(new i = 0; i < GetMaxPlayers(); i++){SetPlayerTime(i, ServerHour, ServerMinute);} if(ServerHour == 19 && ServerMinute == 50 && ServerSecond == 1) { SendClientMessageToAll(COLOR_WHITE, " In 5 minute se va verifica si se va declara castigatorul la Lotto"); SendClientMessageToAll(COLOR_WHITE, " Foloseste si tu /lotto [numar] , poate vei castiga"); } else if(ServerHour == 19 && ServerMinute == 52 && ServerSecond == 0) { new rand = random(80); if(rand < 77) { rand += 3; } Lotto(rand); } format(string, sizeof string, "~w~%d/~w~%s%d/~w~%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(Date, string); format(string, sizeof string, "~w~%s%d:~w~%s%d:~w~%s%d", (ServerHour < 10) ? ("0") : (""), ServerHour, (ServerMinute < 10) ? ("0") : (""), ServerMinute, (ServerSecond < 10) ? ("0") : (""), ServerSecond); TextDrawSetString(Time2, string); }[/pawn] Ce am gresit ? de ce apare de 2 ori !?
  11. c0sminvl

    obiect

    Imi puteti spune va rog cum se numeste obiectul acesta si mai precis id-ul lui ? am cautat dar nu gasesc..
  12. Am rezolvat , am facut singur dar cum fac cu fisierul .tde de la [fs] textdraw editor ?
  13. -dublu post de la net scuzati-
  14. tot degeaba.. nu reactioneaza cu nimic comanda can dau /rentlist ..! Eu vreau daca jucatorul are "RaceParticipant == 1" sa apara pe o lista .. care o poate vedea oricine , gen /helpers
  15. As dori daca jucatorul are RaceParticipant == 1 , sa apara pe lista cand scrii nrlist sa apara numele jucatorului cu raceparticipant == 1. Nu inteleg ce am gresit . dcmd_nrlist(playerid,params[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(RaceParticipant[i] == 1) { new rentstringz[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(i,sendername,128); format(rentstringz,128," - %s [ID:%d] ", sendername,i); SendClientMessage(i,COLOR_YELLOW,rentstringz); } return 1; }
  16. As dori daca jucatorul are RaceParticipant == 1 , sa apara pe lista cand scrii nrlist sa apara numele jucatorului cu raceparticipant == 1. Nu inteleg ce am gresit . dcmd_nrlist(playerid,params[]) { for(new i = 0; i < MAX_PLAYERS; i++) { if(RaceParticipant[i] == 1) { new rentstringz[128]; new sendername[MAX_PLAYER_NAME]; GetPlayerName(i,sendername,128); format(rentstringz,128," - %s [ID:%d] ", sendername,i); SendClientMessage(i,COLOR_YELLOW,rentstringz); } return 1; }
  17. Nu functioneaza . Nu imi apar zonele !
  18. Unde am gresit va rog frumos ? http://forum.sa-mp.com/showthread.php?t=276352 // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #define TEAM_GROVE 1 #define TEAM_BALLAS 2 #define TEAM_VAGOS 3 #define TAKEOVER_TIME 120 // how many seconds needed to take over the zone #define MIN_MEMBERS_TO_START_WAR 3 // how many team members needed in a zone to start a war #if defined FILTERSCRIPT new Teams[] = { TEAM_GROVE, TEAM_BALLAS, TEAM_VAGOS }; new ZoneAttacker[sizeof(ZoneInfo)] = {-1, ...}; new ZoneAttackTime[sizeof(ZoneInfo)]; enum eZone { Float:zMinX, Float:zMinY, Float:zMaxX, Float:zMaxY, zTeam } new ZoneInfo[][eZone] = { {2337.9004,-1808.8383,2590.2043,-1610.3673,TEAM_GROVE}, {2084.7,-1808.8383,2337.9004,-1610.3673,TEAM_BALLAS}, {2590.2043,-1808.8383,2842.3,-1610.3673,TEAM_VAGOS} }; new ZoneID[sizeof(ZoneInfo)]; public OnFilterScriptInit() SetTimer("ZoneTimer", 1000, true); { for(new i=0; i < sizeof(ZoneInfo); i++) { ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]); } print("\n--------------------------------------"); print(" Blank Filterscript by your name here"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { print("\n----------------------------------"); print(" Blank Gamemode by your name here"); print("----------------------------------\n"); } #endif public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { return 1; } public OnPlayerDisconnect(playerid, reason) { return 1; } public OnPlayerSpawn(playerid) { for(new i=0; i < sizeof(ZoneInfo); i++) { GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); if(ZoneAttacker[i] != -1) GangZoneFlashForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); } return 1; } public OnPlayerDeath(playerid, killerid, reason) { return 1; } public OnVehicleSpawn(vehicleid) { for(new i=0; i < sizeof(ZoneInfo); i++) { GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); } return 1; } public OnVehicleDeath(vehicleid, killerid) { return 1; } public OnPlayerText(playerid, text[]) { return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/mycommand", cmdtext, true, 10) == 0) { // Do something here return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { return 1; } public OnPlayerExitVehicle(playerid, vehicleid) { return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { return 1; } public OnPlayerEnterCheckpoint(playerid) { return 1; } public OnPlayerLeaveCheckpoint(playerid) { return 1; } public OnPlayerEnterRaceCheckpoint(playerid) { return 1; } public OnPlayerLeaveRaceCheckpoint(playerid) { return 1; } public OnRconCommand(cmd[]) { return 1; } public OnPlayerRequestSpawn(playerid) { return 1; } public OnObjectMoved(objectid) { return 1; } public OnPlayerObjectMoved(playerid, objectid) { return 1; } public OnPlayerPickUpPickup(playerid, pickupid) { return 1; } public OnVehicleMod(playerid, vehicleid, componentid) { return 1; } public OnVehiclePaintjob(playerid, vehicleid, paintjobid) { return 1; } public OnVehicleRespray(playerid, vehicleid, color1, color2) { return 1; } public OnPlayerSelectedMenuRow(playerid, row) { return 1; } public OnPlayerExitedMenu(playerid) { return 1; } public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) { return 1; } public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { return 1; } public OnRconLoginAttempt(ip[], password[], success) { return 1; } public OnPlayerUpdate(playerid) { return 1; } public OnPlayerStreamIn(playerid, forplayerid) { return 1; } public OnPlayerStreamOut(playerid, forplayerid) { return 1; } public OnVehicleStreamIn(vehicleid, forplayerid) { return 1; } public OnVehicleStreamOut(vehicleid, forplayerid) { return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { return 1; } public OnPlayerClickPlayer(playerid, clickedplayerid, source) { return 1; } stock GetTeamZoneColor(teamid) { switch(teamid) { case TEAM_GROVE: return 0x00FF0088; case TEAM_BALLAS: return 0xFF00FF88; case TEAM_VAGOS: return 0xFFFF0088; } return -1; } stock IsPlayerInZone(playerid, zoneid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); return (x > ZoneInfo[zoneid][zMinX] && x < ZoneInfo[zoneid][zMaxX] && y > ZoneInfo[zoneid][zMinY] && y < ZoneInfo[zoneid][zMaxY]); } stock GetPlayersInZone(zoneid, teamid) { new count; for(new i=0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i) && GetPlayerTeam(i) == teamid && IsPlayerInZone(i, zoneid)) { count++; } } return count; } public ZoneTimer() { for(new i=0; i < sizeof(ZoneInfo); i++) // loop all zones { if(ZoneAttacker[i] != -1) // zone is being attacked { if(GetPlayersInZone(i, ZoneAttacker[i]) >= MIN_MEMBERS_TO_START_WAR) // team has enough members in the zone { ZoneAttackTime[i]++; if(ZoneAttackTime[i] == TAKEOVER_TIME) // zone has been under attack for enough time and attackers take over the zone { GangZoneStopFlashForAll(ZoneID[i]); ZoneInfo[i][zTeam] = ZoneAttacker[i]; GangZoneShowForAll(ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam])); // update the zone color for new team ZoneAttacker[i] = -1; } } else // attackers failed to take over the zone { GangZoneStopFlashForAll(ZoneID[i]); ZoneAttacker[i] = -1; } } else // check if somebody is attacking { for(new t=0; t < sizeof(Teams); t++) // loop all teams { if(Teams[t] != ZoneInfo[i][zTeam] && GetPlayersInZone(i, Teams[t]) >= MIN_MEMBERS_TO_START_WAR) // if there are enough enemies in the zone { ZoneAttacker[i] = Teams[t]; ZoneAttackTime[i] = 0; GangZoneFlashForAll(ZoneID[i], GetTeamZoneColor(ZoneAttacker[i])); } } } } } Imi da urmatoarele erori: C:\Documents and Settings\lucru\Desktop\ss.pwn(101) : error 017: undefined symbol "ZoneInfo" C:\Documents and Settings\lucru\Desktop\ss.pwn(101) : error 036: empty statement C:\Documents and Settings\lucru\Desktop\ss.pwn(101) : error 017: undefined symbol "i" C:\Documents and Settings\lucru\Desktop\ss.pwn(101) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors.
  19. Poti baga oricate , dar o sa porneasca mai greu.
  20. if (strcmp(cmd, "/carupgrade", true) == 0) { if(IsPlayerConnected(playerid)) { new house = PlayerInfo[playerid][pPhousekey]; GetPlayerName(playerid, playername, sizeof(playername)); if (house != 255 && strcmp(playername, HouseInfo[PlayerInfo[playerid][pPhousekey]][hOwner], true) == 0) { new gunid[16]; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { format(string, sizeof(string), "USAGE: /carupgrade [carname]"); SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); SendClientMessage(playerid, COLOR_WHITE,"*** CAR UPGRADES Cost $100000 ***"); SendClientMessage(playerid, COLOR_GRAD2,string); if(PlayerInfo[playerid][pLevel] >= 3) { SendClientMessage(playerid, COLOR_GRAD3, "Cars: infernus Super GT Bullet Flash Freeway"); SendClientMessage(playerid, COLOR_GRAD3, "Cars: huntley jester landstalker merit nebula sabre stratum"); SendClientMessage(playerid, COLOR_GRAD3, "Cars: sunrise tahoma uranus"); SendClientMessage(playerid, COLOR_GRAD3, "Donation cars: stretch elegy phoenix hotknife bandito sultan"); } SendClientMessage(playerid, COLOR_GREEN,"_______________________________________"); return 1; } if(SBizzInfo[5][sbProducts] == 0) { GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1); return 1; } strmid(gunid, tmp, 0, strlen(cmdtext), 255); if (GetPlayerMoney(playerid) > 100000) { if(strcmp(gunid, "stretch", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Stretch"); HouseInfo[house][hVec] = 409; } else if(strcmp(gunid, "hotknife", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Hotknife"); HouseInfo[house][hVec] = 434; } else if(strcmp(gunid, "bandito", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Bandito"); HouseInfo[house][hVec] = 568; } else if(strcmp(gunid, "sultan", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sultan"); HouseInfo[house][hVec] = 560; } else if(strcmp(gunid, "elegy", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Elegy"); HouseInfo[house][hVec] = 562; } else if(strcmp(gunid, "phoenix", true, strlen(gunid)) == 0) { if(PlayerInfo[playerid][pDonateRank] < 1) { SendClientMessage(playerid, COLOR_GREY, " You don't have a Premium Account !"); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Phoenix"); HouseInfo[house][hVec] = 603; } else if(strcmp(gunid, "infernus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Infernus"); HouseInfo[house][hVec] = 411; } else if(strcmp(gunid, "Super GT", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Super GT"); HouseInfo[house][hVec] = 506; } else if(strcmp(gunid, "Bullet", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Bullet"); HouseInfo[house][hVec] = 541; } else if(strcmp(gunid, "Flash", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Flash"); HouseInfo[house][hVec] = 565; } else if(strcmp(gunid, "Freeway", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Freeway"); HouseInfo[house][hVec] = 463; } else if(strcmp(gunid, "huntley", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Huntley"); HouseInfo[house][hVec] = 579; } else if(strcmp(gunid, "jester", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Jester"); HouseInfo[house][hVec] = 559; } else if(strcmp(gunid, "landstalker", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Landstalker"); HouseInfo[house][hVec] = 400; } else if(strcmp(gunid, "merit", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Merit"); HouseInfo[house][hVec] = 551; } else if(strcmp(gunid, "nebula", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Nebula"); HouseInfo[house][hVec] = 516; } else if(strcmp(gunid, "sabre", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sabre"); HouseInfo[house][hVec] = 475; } else if(strcmp(gunid, "stratum", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Stratum"); HouseInfo[house][hVec] = 561; } else if(strcmp(gunid, "sunrise", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Sunrise"); HouseInfo[house][hVec] = 550; } else if(strcmp(gunid, "tahoma", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Tahoma"); HouseInfo[house][hVec] = 566; } else if(strcmp(gunid, "uranus", true, strlen(gunid)) == 0) { SendClientMessage(playerid, COLOR_GRAD6, "New Upgrade: Your House Car Is Now A Uranus"); HouseInfo[house][hVec] = 558; } else { SendClientMessage(playerid, COLOR_GRAD6, " Unrecognized Car or Donate Rank not High enough."); return 1; } SendClientMessage(playerid, COLOR_GRAD6, "Your new car will be delivered within 24 hours -$100000"); OnPropUpdate(); GivePlayerMoney(playerid,-100000); SBizzInfo[5][sbTill] += 100000; ExtortionSBiz(5, 100000); SBizzInfo[5][sbProducts]--; PlayerPlaySound(giveplayerid, 1052, 0.0, 0.0, 0.0); } else { SendClientMessage(playerid, COLOR_GRAD2, " You can't afford that ($100000)"); return 1; } } else { SendClientMessage(playerid, COLOR_GRAD2, " You don't own a house"); return 1; } } return 1; } As dori sa se schimbe masina instant la /carupgrade , nu dupa restart , se poate ? am vazut pe un server. Ajutati-ma va rog.
  21. Salut , am o problema la /accept job dau /job <jobname> , imi pune checkpointul pe mapa ma duc la el dau join si dupa imi apare sa dau /accept job,dau /accept job si nu se intampla nimic . Nu merge nici o comanda cu /accept , accept crack , etc , accept drugs , nu MERG. PS: PE SERVERUL DE PE PC-UL MEU (WINDOWS MERGE) , DAR CAND URC PE HOST NU MERGE. if(strcmp(cmd,"/accept",true)==0) { if(IsPlayerConnected(playerid)) { new x_job[256]; x_job = strtok(cmdtext, idx); if(!strlen(x_job)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Accept __________________|"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: accept [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: Sex, Drugs, Repair, Lawyer, Bodyguard, Job, Live, Refill"); SendClientMessage(playerid, COLOR_GREY, "Available names: Car, Taxi, Bus, Boxing, Medic, Mechanic, Paper, Ticket"); SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|"); return 1; } if(strcmp(x_job,"car",true) == 0) { if(CarOffer[playerid] < 999) { if(IsPlayerConnected(CarOffer[playerid])) { if(GetPlayerMoney(playerid) > CarPrice[playerid]) { if(IsPlayerInVehicle(CarOffer[playerid], CarID[playerid])) { GetPlayerName(CarOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new points; PlayerInfo[CarOffer[playerid]][pCarSkill] ++; if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 50) { SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 2, Players that buy Cars from you can call it more often."); } else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 100) { SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 3, Players that buy Cars from you can call it more often."); } else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 200) { SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 4, Players that buy Cars from you can call it more often."); } else if(PlayerInfo[CarOffer[playerid]][pCarSkill] == 400) { SendClientMessage(CarOffer[playerid], COLOR_YELLOW, "* Your Car Dealer Skill is now Level 5, Players that buy Cars from you can call it more often."); } new level = PlayerInfo[CarOffer[playerid]][pCarSkill]; if(level >= 0 && level <= 50) { points = 1; } else if(level >= 51 && level <= 100) { points = 2; } else if(level >= 101 && level <= 200) { points = 3; } else if(level >= 201 && level <= 400) { points = 4; } else if(level >= 401) { points = 4; } format(string, sizeof(string), "* You bought a Car for $%d, from Car Dealer %s. (You can use /callcar %d times)",CarPrice[playerid],giveplayer,points); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You sold your Car to %s for $%d, the player can use /callcar %d times.",sendername,CarPrice[playerid],points); SendClientMessage(CarOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[CarOffer[playerid]][pPayCheck] += CarPrice[playerid]; GivePlayerMoney(playerid, -CarPrice[playerid]); RemovePlayerFromVehicle(CarOffer[playerid]); CarCalls[playerid] = points; CarOffer[playerid] = 999; CarPrice[playerid] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The Car Dealer is not in the offerd Car !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You cant afford the Car !"); return 1; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " No-one offered to buy a Car !"); return 1; } } else if(strcmp(x_job,"divorce",true) == 0) { if(DivorceOffer[playerid] < 999) { if(IsPlayerConnected(DivorceOffer[playerid])) { if(ProxDetectorS(10.0, playerid, DivorceOffer[playerid])) { GetPlayerName(DivorceOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername); SendClientMessage(DivorceOffer[playerid], COLOR_LIGHTBLUE, string); ClearMarriage(playerid); ClearMarriage(DivorceOffer[playerid]); PlayerInfo[playerid][pPhousekey] = 255; PlayerInfo[playerid][pPbiskey] = 255; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The player that sent you the Divorce Papers is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one sent you any Divorce Papers !"); return 1; } } else if(strcmp(x_job,"witness",true) == 0) { if(MarryWitnessOffer[playerid] < 999) { if(IsPlayerConnected(MarryWitnessOffer[playerid])) { if(ProxDetectorS(10.0, playerid, MarryWitnessOffer[playerid])) { GetPlayerName(MarryWitnessOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have accepted %s's request to be his Marriage Witness.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has accepted your request to be your Marriage Witness.", sendername); SendClientMessage(MarryWitnessOffer[playerid], COLOR_LIGHTBLUE, string); MarryWitness[MarryWitnessOffer[playerid]] = playerid; MarryWitnessOffer[playerid] = 999; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The player that requested you to be his Marriage Witness is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one asked you to be his Marriage Witness !"); return 1; } } else if(strcmp(x_job,"marriage",true) == 0) { if(ProposeOffer[playerid] < 999) { if(!PlayerToPoint(10.0, playerid, -1988.6638,1117.8837,54.4726)) { SendClientMessage(playerid, COLOR_GREY, " You are not at the Church in San Fierro !"); return 1; } if(IsPlayerConnected(ProposeOffer[playerid])) { if(ProxDetectorS(10.0, playerid, ProposeOffer[playerid])) { if(MarryWitness[ProposeOffer[playerid]] == 999) { SendClientMessage(playerid, COLOR_GREY, " The proposer doesn't have a Marriage Witness !"); return 1; } if(IsPlayerConnected(MarryWitness[ProposeOffer[playerid]])) { if(ProxDetectorS(12.0, ProposeOffer[playerid], MarryWitness[ProposeOffer[playerid]])) { GetPlayerName(ProposeOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have accepted %s's request to be your Husband.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has accepted your request to be your Wife.", sendername); SendClientMessage(ProposeOffer[playerid], COLOR_LIGHTBLUE, string); format(string, sizeof(string), "Priest: %s do you take %s as your lovely Husband? (type 'yes', anything else will reject the Marriage)", sendername, giveplayer); SendClientMessage(playerid, COLOR_WHITE, string); MarriageCeremoney[playerid] = 1; ProposedTo[ProposeOffer[playerid]] = playerid; GotProposedBy[playerid] = ProposeOffer[playerid]; MarryWitness[ProposeOffer[playerid]] = 999; ProposeOffer[playerid] = 999; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The Marriage Witness is not near your proposer !"); return 1; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The player that proposed to you is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one Proposed to you !"); return 1; } } else if(strcmp(x_job,"ticket",true) == 0) { if(TicketOffer[playerid] < 999) { if(IsPlayerConnected(TicketOffer[playerid])) { if (ProxDetectorS(5.0, playerid, TicketOffer[playerid])) { GetPlayerName(TicketOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have paid the Ticket of $%d to Officer %s.", TicketMoney[playerid], giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has paid your Ticket of $%d.", sendername, TicketMoney[playerid]); SendClientMessage(TicketOffer[playerid], COLOR_LIGHTBLUE, string); GivePlayerMoney(playerid, - TicketMoney[playerid]); GivePlayerMoney(TicketOffer[playerid], TicketMoney[playerid]); TicketOffer[playerid] = 999; TicketMoney[playerid] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The Officer is not near you !"); return 1; } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Ticket !"); return 1; } } else if(strcmp(x_job,"paper",true) == 0) { if(PaperOffer[playerid] < 999) { if(IsPlayerConnected(PaperOffer[playerid])) { if(BringingPaper[PaperOffer[playerid]] > 0) { if (ProxDetectorS(5.0, playerid, PaperOffer[playerid])) { GetPlayerName(PaperOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You have accepted a Newspaper from Paper Boy %s (use /read paper, to read).", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has accepted your Newspaper.", sendername); SendClientMessage(PaperOffer[playerid], COLOR_LIGHTBLUE, string); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pTitle]); strmid(Paper[playerid][pTitle], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pMaker]); strmid(Paper[playerid][pMaker], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine1]); strmid(Paper[playerid][pLine1], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine2]); strmid(Paper[playerid][pLine2], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine3]); strmid(Paper[playerid][pLine3], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine4]); strmid(Paper[playerid][pLine4], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine5]); strmid(Paper[playerid][pLine5], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine6]); strmid(Paper[playerid][pLine6], string, 0, strlen(string), 255); format(string, sizeof(string), "%s", Paper[PaperOffer[playerid]][pLine7]); strmid(Paper[playerid][pLine7], string, 0, strlen(string), 255); GotPaper[playerid] = 1; PaperOffer[playerid] = 999; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " The Paper Boy is not near you !"); return 1; } } } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Newspaper !"); return 1; } } else if(strcmp(x_job,"boxing",true) == 0) { if(BoxOffer[playerid] < 999) { if(IsPlayerConnected(BoxOffer[playerid])) { new points; new mypoints; GetPlayerName(BoxOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new level = PlayerInfo[BoxOffer[playerid]][pBoxSkill]; if(level >= 0 && level <= 50) { points = 40; } else if(level >= 51 && level <= 100) { points = 50; } else if(level >= 101 && level <= 200) { points = 60; } else if(level >= 201 && level <= 400) { points = 70; } else if(level >= 401) { points = 80; } if(PlayerInfo[playerid][pJob] == 12) { new clevel = PlayerInfo[playerid][pBoxSkill]; if(clevel >= 0 && clevel <= 50) { mypoints = 40; } else if(clevel >= 51 && clevel <= 100) { mypoints = 50; } else if(clevel >= 101 && clevel <= 200) { mypoints = 60; } else if(clevel >= 201 && clevel <= 400) { mypoints = 70; } else if(clevel >= 401) { mypoints = 80; } } else { mypoints = 30; } format(string, sizeof(string), "* You have accepted the Boxing Challenge from %s, and will fight with %d Health.",giveplayer,mypoints); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has accepted your Boxing Challenge Request, you will fight with %d Health.",sendername,points); SendClientMessage(BoxOffer[playerid], COLOR_LIGHTBLUE, string); SetPlayerHealth(playerid, mypoints); SetPlayerHealth(BoxOffer[playerid], points); SetPlayerInterior(playerid, 5); SetPlayerInterior(BoxOffer[playerid], 5); SetPlayerPos(playerid, 762.9852,2.4439,1001.5942); SetPlayerFacingAngle(playerid, 131.8632); SetPlayerPos(BoxOffer[playerid], 758.7064,-1.8038,1001.5942); SetPlayerFacingAngle(BoxOffer[playerid], 313.1165); TogglePlayerControllable(playerid, 0); TogglePlayerControllable(BoxOffer[playerid], 0); GameTextForPlayer(playerid, "~r~Waiting", 3000, 1); GameTextForPlayer(BoxOffer[playerid], "~r~Waiting", 3000, 1); new name[MAX_PLAYER_NAME]; new dstring[MAX_PLAYER_NAME]; new wstring[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(dstring, sizeof(dstring), "%s", name); strmid(wstring, dstring, 0, strlen(dstring), 255); if(strcmp(Titel[TitelName] ,wstring, true ) == 0 ) { format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", sendername, giveplayer); OOCOff(COLOR_WHITE,string); TBoxer = playerid; BoxDelay = 60; } GetPlayerName(BoxOffer[playerid], name, sizeof(name)); format(dstring, sizeof(dstring), "%s", name); strmid(wstring, dstring, 0, strlen(dstring), 255); if(strcmp(Titel[TitelName] ,wstring, true ) == 0 ) { format(string, sizeof(string), "Boxing News: Boxing Champion %s will fight VS %s, in 60 seconds (Grove Street Gym).", giveplayer, sendername); OOCOff(COLOR_WHITE,string); TBoxer = BoxOffer[playerid]; BoxDelay = 60; } BoxWaitTime[playerid] = 1; BoxWaitTime[BoxOffer[playerid]] = 1; if(BoxDelay < 1) { BoxDelay = 20; } InRing = 1; Boxer1 = BoxOffer[playerid]; Boxer2 = playerid; PlayerBoxing[playerid] = 1; PlayerBoxing[BoxOffer[playerid]] = 1; BoxOffer[playerid] = 999; return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " No-one offered you a Boxing Challenge !"); return 1; } } else if(strcmp(x_job,"taxi",true) == 0) { if(TransportDuty[playerid] != 1) { SendClientMessage(playerid, COLOR_GREY, " You are not a Taxi Driver !"); return 1; } if(TaxiCallTime[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Taxi Call !"); return 1; } if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(TaxiCall < 999) { if(IsPlayerConnected(TaxiCall)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(TaxiCall, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You have accepted the Taxi Call from %s, you will see the marker untill you have reached it.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Taxi Driver %s has accepted your Taxi Call please wait at your current Position.",sendername); SendClientMessage(TaxiCall, COLOR_LIGHTBLUE, string); GameTextForPlayer(playerid, "~w~Taxi Caller~n~~r~Goto redmarker", 5000, 1); TaxiCallTime[playerid] = 1; TaxiAccepted[playerid] = TaxiCall; TaxiCall = 999; return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one called for a Taxi yet !"); return 1; } } else if(strcmp(x_job,"bus",true) == 0) { if(TransportDuty[playerid] != 2) { SendClientMessage(playerid, COLOR_GREY, " You are not a Bus Driver !"); return 1; } if(BusCallTime[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Bus Call !"); return 1; } if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(BusCall < 999) { if(IsPlayerConnected(BusCall)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(BusCall, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You have accepted the Bus Call from %s, you will see the marker untill you have reached it.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* Bus Driver %s has accepted your Bus Call please wait at your current Position.",sendername); SendClientMessage(BusCall, COLOR_LIGHTBLUE, string); new Float:X,Float:Y,Float:Z; GetPlayerPos(BusCall, X, Y, Z); SetPlayerCheckpoint(playerid, X, Y, Z, 5); GameTextForPlayer(playerid, "~w~Bus Caller~n~~r~Goto redmarker", 5000, 1); BusCallTime[playerid] = 1; BusAccepted[playerid] = BusCall; BusCall = 999; return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one called for a Bus yet !"); return 1; } } else if(strcmp(x_job,"medic",true) == 0) { if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { if(MedicCallTime[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Medic Call !"); return 1; } if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(MedicCall < 999) { if(IsPlayerConnected(MedicCall)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(MedicCall, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You have accepted the Medic Call from %s, you have 30 Seconds to get there.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will dissapear."); format(string, sizeof(string), "* Medic %s has accepted your Medic Call please wait at your current Position.",sendername); SendClientMessage(MedicCall, COLOR_LIGHTBLUE, string); new Float:X,Float:Y,Float:Z; GetPlayerPos(MedicCall, X, Y, Z); SetPlayerCheckpoint(playerid, X, Y, Z, 5); GameTextForPlayer(playerid, "~w~Medic Caller~n~~r~Goto redmarker", 5000, 1); MedicCallTime[playerid] = 1; MedicCall = 999; return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one called for a Medic yet !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You are not a Medic !"); return 1; } } else if(strcmp(x_job,"mechanic",true) == 0) { if(PlayerInfo[playerid][pJob] != 7) { SendClientMessage(playerid, COLOR_GREY, " You are not a Car Mechanic !"); return 1; } if(MechanicCallTime[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " You have already accepted a Mechanic Call !"); return 1; } if(PlayerOnMission[playerid] > 0) { SendClientMessage(playerid, COLOR_GREY, " On a mission right now, can't use this command !"); return 1; } if(MechanicCall < 999) { if(IsPlayerConnected(MechanicCall)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(MechanicCall, giveplayer, sizeof(giveplayer)); format(string, sizeof(string), "* You have accepted the Mechanic Call from %s, you have 30 Seconds to get there.",giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* After the 30 Seconds the Red Marker will dissapear."); format(string, sizeof(string), "* Car Mechanic %s has accepted your Mechanic Call please wait at your current Position.",sendername); SendClientMessage(MechanicCall, COLOR_LIGHTBLUE, string); new Float:X,Float:Y,Float:Z; GetPlayerPos(MechanicCall, X, Y, Z); SetPlayerCheckpoint(playerid, X, Y, Z, 5); GameTextForPlayer(playerid, "~w~Mechanic Caller~n~~r~Goto redmarker", 5000, 1); MechanicCallTime[playerid] = 1; MechanicCall = 999; return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one called for a Car Mechanic yet !"); return 1; } } else if(strcmp(x_job,"job",true) == 0) { if(GettingJob[playerid] > 0) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { if(GettingJob[playerid] == 2 || GettingJob[playerid] == 5 || GettingJob[playerid] == 10) {//Allow the 3 jobs for Family Members } else { SendClientMessage(playerid, COLOR_GREY, " Cant get a Job, you are in a Family !"); return 1; } } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 1 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = GettingJob[playerid]; GettingJob[playerid] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You haven't even been at a Job place yet!"); return 1; } } else if(strcmp(x_job,"refill",true) == 0) { if(RefillOffer[playerid] < 999) { if(IsPlayerConnected(RefillOffer[playerid])) { if(GetPlayerMoney(playerid) > RefillPrice[playerid]) { GetPlayerName(RefillOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); new car = gLastCar[playerid]; new fuel; PlayerInfo[RefillOffer[playerid]][pMechSkill] ++; if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 50) { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 100) { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 200) { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RefillOffer[playerid]][pMechSkill] == 400) { SendClientMessage(RefillOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); } new level = PlayerInfo[RefillOffer[playerid]][pMechSkill]; if(level >= 0 && level <= 50) { fuel = 15; } else if(level >= 51 && level <= 100) { fuel = 40; } else if(level >= 101 && level <= 200) { fuel = 60; } else if(level >= 201 && level <= 400) { fuel = 80; } else if(level >= 401) { fuel = 100; } format(string, sizeof(string), "* You refilled your car with %d%, for $%d by Car Mechanic %s.",fuel,RefillPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You refilled %s's car with %d%, the $%d has been added to your PayCheck.",sendername,fuel,RefillPrice[playerid]); SendClientMessage(RefillOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[RefillOffer[playerid]][pPayCheck] += RefillPrice[playerid]; GivePlayerMoney(playerid, -RefillPrice[playerid]); if(Gas[car] < 110) { Gas[car] += fuel; } RefillOffer[playerid] = 999; RefillPrice[playerid] = 0; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You cant afford the Refill !"); return 1; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " No-one offered to Refill your Car !"); return 1; } } else if(strcmp(x_job,"live",true) == 0) { if(LiveOffer[playerid] < 999) { if(IsPlayerConnected(LiveOffer[playerid])) { if (ProxDetectorS(5.0, playerid, LiveOffer[playerid])) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends."); SendClientMessage(LiveOffer[playerid], COLOR_LIGHTBLUE, "* You are frozen till the Live Conversation ends (use /live again)."); TogglePlayerControllable(playerid, 0); TogglePlayerControllable(LiveOffer[playerid], 0); TalkingLive[playerid] = LiveOffer[playerid]; TalkingLive[LiveOffer[playerid]] = playerid; LiveOffer[playerid] = 999; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are to far away from the News Reporter !"); return 1; } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " No-one gave you a Live Conversation offer !"); return 1; } } else if(strcmp(x_job,"lawyer",true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /accept lawyer [playerid/PartOfName]"); return 1; } giveplayerid = ReturnUser(tmp); if (gTeam[playerid] == 2) { if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pJob] == 2) { GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You allowed %s to free a Jailed Person.", giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE,string); format(string, sizeof(string), "* Officer %s approved (allowed) you to free a Jailed Person. (use /free)", sendername); SendClientMessage(giveplayerid, COLOR_LIGHTBLUE,string); ApprovedLawyer[giveplayerid] = 1; return 1; } } } return 1; } else { SendClientMessage(playerid, COLOR_GREY, "Invalid action! (You are no cop / Player aint a Lawyer / Bad ID)"); return 1; } } else if(strcmp(x_job,"bodyguard",true) == 0) { if(GuardOffer[playerid] < 999) { if(GetPlayerMoney(playerid) > GuardPrice[playerid]) { if(IsPlayerConnected(GuardOffer[playerid])) { GetPlayerName(GuardOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You accepted the Protection for $%d from Bodyguard %s.",GuardPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s accepted your Protection, and the $%d was added to your PayCheck.",sendername,GuardPrice[playerid]); SendClientMessage(GuardOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[GuardOffer[playerid]][pPayCheck] += GuardPrice[playerid]; GivePlayerMoney(playerid, -GuardPrice[playerid]); GuardOffer[playerid] = 999; GuardPrice[playerid] = 0; return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You can't afford the Protection !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any Protection !"); return 1; } } else if(strcmp(x_job,"drugs",true) == 0) { if(DrugOffer[playerid] < 999) { if(GetPlayerMoney(playerid) > DrugPrice[playerid]) { if(PlayerInfo[playerid][pDrugs] < 7) { if(IsPlayerConnected(DrugOffer[playerid])) { GetPlayerName(DrugOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You bought %d gram for $%d from Drug Dealer %s.",DrugGram[playerid],DrugPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s has bought your %d gram, the $%d was added to your PayCheck.",sendername,DrugGram[playerid],DrugPrice[playerid]); SendClientMessage(DrugOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[DrugOffer[playerid]][pPayCheck] += DrugPrice[playerid]; PlayerInfo[DrugOffer[playerid]][pDrugsSkill] ++; GivePlayerMoney(playerid, -DrugPrice[playerid]); PlayerInfo[playerid][pDrugs] += DrugGram[playerid]; PlayerInfo[DrugOffer[playerid]][pDrugs] -= DrugGram[playerid]; if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 50) { SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 2, you can buy more Grams and Cheaper."); } else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 100) { SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 3, you can buy more Grams and Cheaper."); } else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 200) { SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 4, you can buy more Grams and Cheaper."); } else if(PlayerInfo[DrugOffer[playerid]][pDrugsSkill] == 400) { SendClientMessage(DrugOffer[playerid], COLOR_YELLOW, "* Your Drug Dealer Skill is now Level 5, you can buy more Grams and Cheaper."); } DrugOffer[playerid] = 999; DrugPrice[playerid] = 0; DrugGram[playerid] = 0; return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You are fully loaded with Drugs, use them first !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You can't afford those Drugs !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offerd you any Drugs !"); return 1; } } else if(strcmp(x_job,"sex",true) == 0) { if(SexOffer[playerid] < 999) { if(GetPlayerMoney(playerid) > SexPrice[playerid]) { if (IsPlayerConnected(SexOffer[playerid])) { new Car = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(SexOffer[playerid], Car)) { GetPlayerName(SexOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You had sex with Whore %s, for $%d.", giveplayer, SexPrice[playerid]); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* %s had sex with you, the $%d was added to your PayCheck.", sendername, SexPrice[playerid]); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[SexOffer[playerid]][pPayCheck] += SexPrice[playerid]; GivePlayerMoney(playerid, -SexPrice[playerid]); PlayerInfo[SexOffer[playerid]][pSexSkill] ++; if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50) { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 2, you offer better Sex (health) and less chance on STD."); } else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100) { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 3, you offer better Sex (health) and less chance on STD."); } else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200) { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 4, you offer better Sex (health) and less chance on STD."); } else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400) { SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Your Sex Skill is now Level 5, you offer better Sex (health) and less chance on STD."); } if(STDPlayer[playerid] == 0) { if(Condom[playerid] < 1) { new Float:health; new level = PlayerInfo[SexOffer[playerid]][pSexSkill]; if(level >= 0 && level <= 50) { if(GetPlayerHealth(playerid, health) < 150) { SetPlayerHealth(playerid, health + 30.0); } new rand = random(sizeof(STD1)); STDPlayer[playerid] = STD1[rand]; STDPlayer[SexOffer[playerid]] = STD1[rand]; if(STD1[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); } else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); } else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); } else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 30 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); } } else if(level >= 51 && level <= 100) { if(GetPlayerHealth(playerid, health) < 150) { SetPlayerHealth(playerid, health + 60.0); } new rand = random(sizeof(STD2)); STDPlayer[playerid] = STD2[rand]; STDPlayer[SexOffer[playerid]] = STD2[rand]; if(STD2[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); } else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); } else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); } else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 60 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); } } else if(level >= 101 && level <= 200) { if(GetPlayerHealth(playerid, health) < 150) { SetPlayerHealth(playerid, health + 90.0); } new rand = random(sizeof(STD3)); STDPlayer[playerid] = STD3[rand]; STDPlayer[SexOffer[playerid]] = STD3[rand]; if(STD3[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); } else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); } else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); } else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 90 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); } } else if(level >= 201 && level <= 400) { if(GetPlayerHealth(playerid, health) < 150) { SetPlayerHealth(playerid, health + 120.0); } new rand = random(sizeof(STD4)); STDPlayer[playerid] = STD4[rand]; STDPlayer[SexOffer[playerid]] = STD4[rand]; if(STD4[rand] == 0) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + no STD while having Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You haven't got a STD while having Sex."); } else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Chlamydia because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Chlamydia because of the Sex."); } else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Gonorrhea because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Gonorrhea because of the Sex."); } else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You got 120 Health + a Syphilis because of the Sex."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* You got a Syphilis because of the Sex."); } } else if(level >= 401) { if(GetPlayerHealth(playerid, health) < 150) { SetPlayerHealth(playerid, health + 150.0); } SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Your Sex Skill Level is so high you gave high health and No STD."); SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The Whore's Sex Skill Level is so high you got high health and No STD."); } } else { SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* The player used a Condom."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You used a Condom."); Condom[playerid] --; } } else { SendClientMessage(SexOffer[playerid], COLOR_LIGHTBLUE, "* That player was already infected with a STD, can't get another one."); return 1; } SexOffer[playerid] = 999; return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You or the Whore are not both in a Car !"); return 1; } }//Connected or not return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You can't afford the Sex!"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " You dont have any Sex offerd by a Whore !"); return 1; } } else if(strcmp(x_job,"repair",true) == 0) { if(RepairOffer[playerid] < 999) { if(GetPlayerMoney(playerid) > RepairPrice[playerid]) { if(IsPlayerInAnyVehicle(playerid)) { if(IsPlayerConnected(RepairOffer[playerid])) { GetPlayerName(RepairOffer[playerid], giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); RepairCar[playerid] = GetPlayerVehicleID(playerid); SetVehicleHealth(RepairCar[playerid], 1000.0); format(string, sizeof(string), "* You repaired your car for $%d by Car Mechanic %s.",RepairPrice[playerid],giveplayer); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "* You fixed %s's car, the $%d has been added to your PayCheck.",sendername,RepairPrice[playerid]); SendClientMessage(RepairOffer[playerid], COLOR_LIGHTBLUE, string); PlayerInfo[RepairOffer[playerid]][pMechSkill] ++; if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 50) { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 2, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 100) { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 3, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 200) { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 4, you can add more Fuel to any Players Cars."); } else if(PlayerInfo[RepairOffer[playerid]][pMechSkill] == 400) { SendClientMessage(RepairOffer[playerid], COLOR_YELLOW, "* Your Car Mechanic Skill is now Level 5, you can add more Fuel to any Players Cars."); } PlayerInfo[RepairOffer[playerid]][pPayCheck] += RepairPrice[playerid]; GivePlayerMoney(playerid, -RepairPrice[playerid]); RepairOffer[playerid] = 999; RepairPrice[playerid] = 0; return 1; } return 1; } return 1; } else { SendClientMessage(playerid, COLOR_GREY, " You can't afford the Repair !"); return 1; } } else { SendClientMessage(playerid, COLOR_GREY, " No-one offerd you to Repair your Car !"); return 1; } } else { return 1; } }//not connected return 1;
  22. Deci am o problema , am testat gamemode-ul pe pc meu (windows) am testat /join si /accept job , cand dau /accept job merge(server pe windows*pc meu*). Urc serverul pe host , dau restart etc merg , dau accept job si nu face nimic. PS: Nu merge nici o comanda cu /accept pe host , nici /accept ticket etc. if(strcmp(cmd,"/accept",true)==0) { if(IsPlayerConnected(playerid)) { new x_job[256]; x_job = strtok(cmdtext, idx); if(!strlen(x_job)) { SendClientMessage(playerid, COLOR_WHITE, "|__________________ Accept __________________|"); SendClientMessage(playerid, COLOR_WHITE, "USAGE: accept [name]"); SendClientMessage(playerid, COLOR_GREY, "Available names: Sex, Drugs, Repair, Lawyer, Bodyguard, Job, Live, Refill"); SendClientMessage(playerid, COLOR_GREY, "Available names: Car, Taxi, Bus, Boxing, Medic, Mechanic, Paper, Ticket"); SendClientMessage(playerid, COLOR_WHITE, "|____________________________________________|"); return 1; }
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.