[pomoc] /prihvati sex


Započeo MatijaCH, Mart 29, 2011, 20:13:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:tuborg big edit
Detaljan opis problema:ovako radim posao za prostitutku...sve sam napravio sam nikak nemrem /prihvati sex moze pomoc?
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):

Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

Najlakse ti je koristiti PVarove..

Kod komande gdje nudi sex stavis SetPVarInt(komedaje,"Sex",1);

Kod komande /prihvati sex provjeravas da li igrac ima ponudjen sex
if(GetPVarInt(playerid,"Sex") == 0) return SendClientMessage(playerid,-1,"Error!");;//ako nema da izbaci error
ako ima SetPVarInt(playerid,"Sex",0);
malo sredis komandu sebi po volji i to je to..
Ja sam ti samo dao neka uputstva..

moze cela komanda :P
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

druze evo probaj ovu  ;)

if(strcmp(cmd,"/prihvatisex",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), "* Imali ste sex sa Prostitutkom %s, za $%d.", giveplayer, SexPrice[playerid]);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* %s je imao sex sa vama, $%d vam je dodato na sledecu platu.", sendername, SexPrice[playerid]);
								SendClientMessage(SexOffer[playerid], COLOR_WHITE, string);
								PlayerInfo[SexOffer[playerid]][pPayCheck] += SexPrice[playerid] * 5;
								SafeGivePlayerMoney(playerid, -SexPrice[playerid]);
								PlayerInfo[SexOffer[playerid]][pSexSkill] ++;
								if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 50)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Vas Sex Skill je sada Level 2, nudite bolji sex i manju sansu od oboljenja STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 100)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Vas Sex Skill je sada Level 3, nudite bolji sex i manju sansu od oboljenja STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 200)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Vas Sex Skill je sada Level 4, nudite bolji sex i manju sansu od oboljenja STD."); }
								else if(PlayerInfo[SexOffer[playerid]][pSexSkill] == 400)
								{ SendClientMessage(SexOffer[playerid], COLOR_YELLOW, "* Vas Sex Skill je sada Level 5, nudite bolji sex i manju sansu od oboljenja 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_WHITE, "* Dobili ste 30 Helta i niste dobili STD."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD1[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 30 Helta i dobili ste Chlamydia."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD1[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 30 Helta i dobili ste Gonorrhea."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD1[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 30 Helta i dobili ste Syphilis."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* 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_WHITE, "* Dobili ste 60 Helta i niste dobili STD."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD2[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 60 Helta i dobili ste Chlamydia."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD2[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 60 Helta i dobili ste Gonorrhea."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD2[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 60 Helta i dobili ste Syphilis."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* 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_WHITE, "* Dobili ste 90 Helta i niste dobili STD."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD3[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 90 Helta i dobili ste Chlamydia."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD3[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 90 Helta i dobili ste Gonorrhea."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD3[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 90 Helta i dobili ste Syphilis."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* 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_WHITE, "* Dobili ste 120 Helta i niste dobili STD."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You haven't got a STD while having Sex."); }
											else if(STD4[rand] == 1) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 120 Helta i dobili ste Chlamydia."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Chlamydia because of the Sex."); }
											else if(STD4[rand] == 2) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 120 Helta i dobili ste Gonorrhea."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* You got a Gonorrhea because of the Sex."); }
											else if(STD4[rand] == 3) { SendClientMessage(playerid, COLOR_WHITE, "* Dobili ste 120 Helta i dobili ste Syphilis."); SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* 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_WHITE, "* Vas je skill level toliko velik da ste pruzili dobar sex i mnogo helta bez oboljenja.");
											SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* Prostituka ima velik skill tako da ste dobili mnogo helta i nijeste dobili oboljenje.");
										}
				      				}
									else
									{
									    SendClientMessage(SexOffer[playerid], COLOR_WHITE, "* Igrac je koristio kondom.");
									    SendClientMessage(playerid, COLOR_WHITE, "* Koristili ste kondom.");
									    Condom[playerid] --;
									}
								}
								else
								{
								    SendClientMessage(SexOffer[playerid], COLOR_GREY, "* Taj igrac je vec bio zarazen sa STD, ne moze dobiti jos jedan.");
								    return 1;
								}
								SexOffer[playerid] = 999;
								return 1;
							}
							else
							{
							    SendClientMessage(playerid, COLOR_GREY, "   Vi ili prostitutka niste u autu !");
							    return 1;
							}
						}//Connected or not
						return 1;
					}
					else
					{
					    SendClientMessage(playerid, COLOR_GREY, "   Nemate dovoljno novca da platite za sex!");
					    return 1;
					}
				}
				else
				{
				    SendClientMessage(playerid, COLOR_GREY, "   Niko vam nije ponudio sex !");
				    return 1;
				}
			}


nisam siguran dali ce ti raditi ali vrijedi pokusati  ;) , reci ako bude erora

Evo ti Komanda znaci kada kucas /sex moras biti u autu i /sex id price i onda on mora prihvatiti /accept sex i onda se ahah xD
Kod: c
if(strcmp(cmd, "/sex", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	   	{
	        if(PlayerInfo[playerid][pJob] == 3)
			{
			    if(!IsPlayerInAnyVehicle(playerid))
			    {
					SendClientMessage(playerid, COLOR_GREY, "   Mozes se sexati samo u autu !");
					return 1;
			    }
			    new Car = GetPlayerVehicleID(playerid);
				tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_GRAD1, "KORISTI: /sex [playerid/PartOfName] [price]");
					return 1;
				}
				//giveplayerid = strval(tmp);
				giveplayerid = ReturnUser(tmp);
				tmp = strtok(cmdtext, idx);
				new money;
				money = strval(tmp);
				if(money < 1 || money > 99999) { SendClientMessage(playerid, COLOR_GREY, "   Price not lower then 1, or above 99999!"); return 1; }
				if(IsPlayerConnected(giveplayerid))
				{
				    if(giveplayerid != INVALID_PLAYER_ID)
				    {
						if (ProxDetectorS(8.0, playerid, giveplayerid))
						{
						    if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "Nemozes se sexati sam sa sobom!"); return 1; }
						    if(IsPlayerInAnyVehicle(playerid) && IsPlayerInVehicle(giveplayerid, Car))
						    {
							    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
								GetPlayerName(playerid, sendername, sizeof(sendername));
								format(string, sizeof(string), "* You offerd %s to have Sex with you, for $%d.", giveplayer, money);
								SendClientMessage(playerid, COLOR_WHITE, string);
								format(string, sizeof(string), "* Whore %s has offerd you to have Sex with her, for $%d (Pisi /accept sex) to accept.", sendername, money);
								SendClientMessage(giveplayerid, COLOR_WHITE, string);
					            SexOffer[giveplayerid] = playerid;
					            SexPrice[giveplayerid] = money;
				            }
				            else
				            {
				                SendClientMessage(playerid, COLOR_GREY, "   You or the other player must be in a Car together !");
				                return 1;
				            }
						}
						else
						{
							SendClientMessage(playerid, COLOR_GREY, "  Igrac nije blizu tebe !");
							return 1;
						}
					}
				}
				else
				{
					SendClientMessage(playerid, COLOR_GREY, "   Igrac je offline !");
					return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   Nisi kurva!");
			}
		}//not connected
		return 1;
		}
Poslednja Izmena: Mart 29, 2011, 22:49:39 POSLE PODNE od $--L84S--$

Hvala :*
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !