Some bugs - 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)
+--- Thread: Some bugs (
/showthread.php?tid=301774)
Some bugs -
.EnjatsRed. - 05.12.2011
//Hello,I have some bugs in my gm\\
1.When a player enter/exit a vehicle give +50 health for player//
2.EX:If a ballas member hit another member don't decrease hp//
Re: Some bugs -
skaTim - 05.12.2011
Check 'OnPlayerEnterVehicle' and remove 'SetPlayerHealth(playerid, 50)'
Re: Some bugs -
.EnjatsRed. - 05.12.2011
OnPlayerEnterVehicle:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
gGas[playerid] = 1;
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{
if (IsACopCar(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pLeader]==1||PlayerInfo[playerid][pLeader]==2||PlayerInfo[playerid][pLeader]==3||PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pMember]==3) {}
else {
WantedPoints[playerid]+=2;
SetPlayerCriminal(playerid,255, "Furtul unei masini de politie");
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
if (IsAnAmbulance(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4) { }
else { WantedPoints[playerid]+=2; SetPlayerCriminal(playerid,255, "Stealing An Ambulance"); }
}
}
return 1;
}
Re: Some bugs -
BleverCastard - 05.12.2011
Show us your OnPlayerExitVehicle
Re: Some bugs -
.EnjatsRed. - 05.12.2011
I haven't OnPlayerExitVehicle
Re: Some bugs -
BleverCastard - 05.12.2011
:facepalm: What GM are you using?
Re: Some bugs -
.EnjatsRed. - 05.12.2011
It's a gfedit
Re: Some bugs -
BleverCastard - 05.12.2011
Surprise Surprise;PM me your Skype or MSN and I'll help you thru there, or PM me your TeamViewer Id and Pass.
Re: Some bugs -
skaTim - 05.12.2011
Quote:
Originally Posted by .EnjatsRed.
I haven't OnPlayerExitVehicle
|
LOL!
Re: Some bugs -
.EnjatsRed. - 06.12.2011
the first bug fixed...
but the second..?