......Car orgasm? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ......Car orgasm? (
/showthread.php?tid=151591)
......Car orgasm? -
(.Aztec); - 31.05.2010
I have no fucking clue what's causing it. There's two things dealing with the taxis in this script, which are..
My forward:
pawn Код:
public IsInTaxi(carid)
{
new carmodel = GetVehicleModel(carid);
if(carmodel == 420)
{
return 1;
}
return 0;
}
Dealing with the forward:
pawn Код:
else if(strcmp(name, "taxi", true) == 0)
{
if(IsInTaxi(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, orange, "[OBJECTIVE]: Drive your taxi to the checkpoints, driving as carefully as possible.");
SendClientMessage(playerid, white, "[HINT]: The less damage taken, the more you will get paid.");
Checkpoint[playerid] = 24;
SetPlayerCheckpoint(playerid, 1818.8019,-1911.5210,13.1685, 3);
}
}
Checkpoint 35: (End)
pawn Код:
else if(Checkpoint[playerid] == 35) //Taxi End
{
new Float:health;
new veh;
new vehicle;
veh = GetPlayerVehicleID(playerid);
GetVehicleHealth(veh, health);
if(health > 900) { SendClientMessage(playerid, white, "Your taxi was returned in excellent condition, you have earned $40."); SGivePlayerMoney(playerid, 40); }
if(health < 800) { SendClientMessage(playerid, white, "Your taxi was returned in poor condition, you have earned $20."); SGivePlayerMoney(playerid, 20); }
Checkpoint[playerid] = 0;
vehicle = GetPlayerVehicleID(playerid);
RemovePlayerFromVehicle(playerid);
SetVehicleToRespawn(vehicle);
DisablePlayerCheckpoint(playerid);
PlayerPlaySound(playerid,1085,0.0,0.0,0.0);
}
This is what happens in-game: (Basically, a bunch of cars spawn ontop of them (how the fuck?) and just have a giant orgy, the blow up, and do it again)
[img width=957 height=768]http://i48.tinypic.com/23h4rq0.jpg[/img]
Re: ......Car orgasm? -
Antonio [G-RP] - 31.05.2010
This happened when my defines for vehicles was MAX_VEHICLES
It tried to spawn the 'MAX_VEHICLES' amount instead of the number that was atcually there
Re: ......Car orgasm? -
(.Aztec); - 31.05.2010
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
This happened when my defines for vehicles was MAX_VEHICLES
It tried to spawn the 'MAX_VEHICLES' amount instead of the number that was atcually there
|
Actually, I was using <censored> to get camera angles and shit, and apparently this caused it somehow.. I uninstalled it, went in-game, and it was perfectly fine. Jesus christ, compatibility fail on ******s part?
Re: ......Car orgasm? -
Antonio [G-RP] - 31.05.2010
WtF?
Re: ......Car orgasm? -
(.Aztec); - 31.05.2010
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
|
Woah, they have censored shit now.
Re: ......Car orgasm? -
mprofitt - 31.05.2010
Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
|
Woah, they have censored shit now.
|
Communist / Marxist kids always like to censor shit.
Re: ......Car orgasm? -
(.Aztec); - 31.05.2010
Quote:
Originally Posted by mprofitt
Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by Antonio (eternalrp.webatu.com)
WtF?
|
Woah, they have censored shit now.
|
Communist / Marxist kids always like to censor shit.
|
Yes, kye is a communist.