L3on
Membru-
Posts
13 -
Joined
-
Last visited
Never
L3on's Achievements
-
L-am pus si eu acum si e destul de fain. 5/5
-
Incearca asa. if(strcmp(cmd, "/stergetuning", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] > 0) { new veh = GetPlayerVehicleID(playerid); if(IsPlayerInAnyVehicle(playerid) == 0) { SendClientMessage(playerid,COLOR_GOLD,"* Trebuie sa fii intr-un vehicul!"); } else { RemoveVehicleComponent(veh, 1000); RemoveVehicleComponent(veh, 1001); RemoveVehicleComponent(veh, 1002); RemoveVehicleComponent(veh, 1003); RemoveVehicleComponent(veh, 1004); RemoveVehicleComponent(veh, 1005); RemoveVehicleComponent(veh, 1006); RemoveVehicleComponent(veh, 1007); RemoveVehicleComponent(veh, 1008); RemoveVehicleComponent(veh, 1009); RemoveVehicleComponent(veh, 1010); RemoveVehicleComponent(veh, 1011); RemoveVehicleComponent(veh, 1012); RemoveVehicleComponent(veh, 1013); RemoveVehicleComponent(veh, 1014); RemoveVehicleComponent(veh, 1015); RemoveVehicleComponent(veh, 1016); RemoveVehicleComponent(veh, 1017); RemoveVehicleComponent(veh, 1018); RemoveVehicleComponent(veh, 1019); RemoveVehicleComponent(veh, 1020); SendClientMessage(playerid, COLOR_GOLD,"* Ai scos tuningul masinii"); } } else { SendClientMessage(playerid, COLOR_GOLD, "Nu esti Admin"); return 1; } }return 1; }
-
La comanda /makeleader pune asta: if(level == 1 || level == 2 || level == 3) { gTeam[para1] = 2; PlayerInfo[para1][pTeam] = 2; } Vezi ca la level == 1 , level == 2 , level == 3 , 1,2,3 sunt numerele de la pd,fbi si ng. Daca ai factiunile astea 3 cu alt id schimbi numerele.
-
Gata, am rezolvat problema. Multumesc de ajutor.
-
Chiar daca scriu /takejob paperboy de ex, imi zice ca daca vreau sa devin un mecanic sa scriu /accept job. Care ar putea fi problema la comanda?
-
De fiecare data cand dau /takejob si aleg un job, imi zice sa scriu /accept job pentru a deveni mecanic, indiferent de ce aleg. Cum as putea remedia problema? Comanda: if(strcmp(cmd,"/takejob",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,362.4521,173.6969,1008.3828)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_LIGHTGREEN, "|______________________ Jobs _____________________|"); SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /takejob [name]"); SendClientMessage(playerid, COLOR_GRAD2, "Available names: Farmer, Trucker, Mechanic, Bodyguard"); SendClientMessage(playerid, COLOR_GRAD2, "Available names: BusDriver, Boxer, CarDealer, PaperBoy"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "|_________________________________________________|"); return 1; } if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Mechanic, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Mechanic, type /accept job."); GettingJob[playerid] = 7; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bodyguard, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job."); GettingJob[playerid] = 8; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,531.7930,-1292.4044,17.2422)) { SCM(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Dealer, and get a 5 hour Contract."); SCM(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SCM(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Dealer, type /accept job."); GettingJob[playerid] = 10; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SCM(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SCM(playerid, COLOR_LIGHTBLUE, "* You are about to become a Boxer, and get a 5 hour Contract."); SCM(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SCM(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Boxer, type /accept job."); GettingJob[playerid] = 12; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bus Driver, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bus Driver, type /accept job."); GettingJob[playerid] = 14; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paper Boy, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Paper Boy, type /accept job."); GettingJob[playerid] = 15; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job."); GettingJob[playerid] = 16; } else if(strcmp(x_nr,"Mechanic",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 7; } } else if(strcmp(x_nr,"Bodyguard",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 8; } } else if(strcmp(x_nr,"BusDriver",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 14; } } else if(strcmp(x_nr,"PaperBoy",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 15; } } else if(strcmp(x_nr,"Trucker",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 16; } } else if(strcmp(x_nr,"Boxer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 12; } } else if(strcmp(x_nr,"CarDealer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 10; } } else { SCM(playerid, COLOR_GREY, " You are not at the City Hall !"); } } else { SCM(playerid, COLOR_GREY, " You already have a job, use /quitjob first !"); } }//not connected return 1; }
-
Incearca asa: if(strcmp(cmd, "/healall", true) == 0) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 3) { format(string, sizeof(string), "ADMINUL %s a setat tuturor playerilor 100 puncte la viata.", sendername); SCMTA(COLOR_LIGHTRED, string); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { SetPlayerHealth(i, 100); } } } } return 1; }
-
Salut, am si eu un bug la hitman. Pun /contract pe cineva, apoi /portable,contracts si apoi dau givehit. Chestia e ca atunci cand il omor nu primesc banii si nici nu scrie ca am terminat contractul. Comanda: else if ((strcmp("Givehit", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("Givehit"))) { if(PlayerInfo[playerid][pRank] < 4) { SCM(playerid, COLOR_GREY, " You need Rank 4 to Give Contracts to Hitmans !"); return 0; } if(hitfound == 0) { SCM(playerid, COLOR_GREY, " There is no Hit Founded yet, use Contracts in the Portable first !"); return 0; } tmp = strtok(text, idx); if(!strlen(tmp)) { SCM(playerid, COLOR_GRAD1, "USAGE: Givehit [playerid/PartOfName]"); return 0; } //giveplayerid = strval(tmp); giveplayerid = ReturnUser(tmp); if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { if(PlayerInfo[giveplayerid][pMember] != 8) { SCM(playerid, COLOR_GREY, " That player is not a Hitman !"); return 0; } if(GoChase[giveplayerid] < 999) { SCM(playerid, COLOR_GREY, " That Hitman is already busy with a Contract !"); return 0; } if(IsPlayerConnected(hitid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); GetPlayerName(giveplayerid, giver, sizeof(giver)); GetPlayerName(hitid, giveplayer, sizeof(giveplayer)); //format(string, sizeof(string), "* You assigned%s to kill: %s(ID:%d), for $%d.", giver, giveplayer, hitid, PlayerInfo[hitid][pValue]); //SCM(playerid, COLOR_YELLOW, string); //format(string, sizeof(string), "* Hitman %s has assigned you to kill: %s(ID:%d), for $%d.", sendername, giveplayer, hitid, PlayerInfo[hitid][pValue]); //SCM(giveplayerid, COLOR_YELLOW, string); format(string, sizeof(string), "* Hitman %s, assigned Hitman %s to kill: %s(ID:%d), for $%d.", sendername, giver, giveplayer, hitid, PlayerInfo[hitid][pHeadValue]); SendFamilyMessage(8, COLOR_YELLOW, string); GoChase[giveplayerid] = hitid; GetChased[hitid] = giveplayerid; GotHit[hitid] = 1; hitid = 0; hitfound = 0; return 0; } else { SCM(playerid, COLOR_GREY, " The Contracted Person is offline, use Contracts in the Portable again !"); return 0; } } return 0; } else { SCM(playerid, COLOR_GREY, " That Hitman is not Online, or ain't a Hitman !"); return 0; } }
-
De fiecare data cand dau /takejob si aleg un job, imi zice sa scriu /accept job pentru a deveni mecanic, indiferent de ce aleg. Cum as putea remedia problema? Comanda: if(strcmp(cmd,"/takejob",true)==0) { if(IsPlayerConnected(playerid)) { if(PlayerToPoint(3.0,playerid,362.4521,173.6969,1008.3828)) { new x_nr[256]; x_nr = strtok(cmdtext, idx); if(!strlen(x_nr)) { SendClientMessage(playerid, COLOR_LIGHTGREEN, "|______________________ Jobs _____________________|"); SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /takejob [name]"); SendClientMessage(playerid, COLOR_GRAD2, "Available names: Farmer, Trucker, Mechanic, Bodyguard"); SendClientMessage(playerid, COLOR_GRAD2, "Available names: BusDriver, Boxer, CarDealer, PaperBoy"); SendClientMessage(playerid, COLOR_LIGHTGREEN, "|_________________________________________________|"); return 1; } if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Mechanic, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Mechanic, type /accept job."); GettingJob[playerid] = 7; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bodyguard, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bodyguard, type /accept job."); GettingJob[playerid] = 8; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,531.7930,-1292.4044,17.2422)) { SCM(playerid, COLOR_LIGHTBLUE, "* You are about to become a Car Dealer, and get a 5 hour Contract."); SCM(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SCM(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Car Dealer, type /accept job."); GettingJob[playerid] = 10; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,766.0804,14.5133,1000.7004)) { if(PlayerInfo[playerid][pMember] > 0 || PlayerInfo[playerid][pFMember] < 255) { SCM(playerid, COLOR_GREY, " Families cannot take on this Job !"); return 1; } SCM(playerid, COLOR_LIGHTBLUE, "* You are about to become a Boxer, and get a 5 hour Contract."); SCM(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SCM(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Boxer, type /accept job."); GettingJob[playerid] = 12; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Bus Driver, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Bus Driver, type /accept job."); GettingJob[playerid] = 14; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Paper Boy, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Paper Boy, type /accept job."); GettingJob[playerid] = 15; } else if (GetPlayerState(playerid) == 1 && PlayerToPoint(3.0, playerid,362.4521,173.6969,1008.3828)) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You are about to become a Trucker, and get a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* You have to forfill this Contract first, if you want to Quit the job later."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* If you are sure to become a Trucker, type /accept job."); GettingJob[playerid] = 16; } else if(strcmp(x_nr,"Mechanic",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 7; } } else if(strcmp(x_nr,"Bodyguard",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 8; } } else if(strcmp(x_nr,"BusDriver",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 14; } } else if(strcmp(x_nr,"PaperBoy",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 15; } } else if(strcmp(x_nr,"Trucker",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 16; } } else if(strcmp(x_nr,"Boxer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 12; } } else if(strcmp(x_nr,"CarDealer",true) == 0) { if (GetPlayerState(playerid) == 1) { SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Now that you have confirmed you want the Job, you got a 5 hour Contract."); SendClientMessage(playerid, COLOR_LIGHTBLUE, "* Congratulations with your new Job, type /help to see your new command."); PlayerInfo[playerid][pJob] = 10; } } else { SCM(playerid, COLOR_GREY, " You are not at the City Hall !"); } } else { SCM(playerid, COLOR_GREY, " You already have a job, use /quitjob first !"); } }//not connected return 1; }
-
Dupa ce termin de tunat o masina si apas enter, ma da jos din masina, iar masina dispare. Care ar putea fi problema?
-
Cauti in gamemode: OnGameModeInit si adaugi: DisableInteriorEnterExits();
-
Deci am urmatoarea problema: Cand un politist omoara un player cu wanted care are casa/rent, nu il da in jail ci in casa, desi scrie cat timp mai are de stat in jail. Va rog sa ma ajutati.