Anyone? - 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: Anyone? (
/showthread.php?tid=484565)
Anyone? -
ViciousRoleplay123 - 31.12.2013
Anyone help me removing these gates:
I couldn't find a way.
(Pic in attachments)
Regards,
ViciousRoleplay123
Re: Anyone? -
StuartD - 31.12.2013
If you download the SAMP map editor, then you can click and remove it, add the RemoveBuildingForPlayer into your script and TaDa!
https://sampforum.blast.hk/showthread.php?tid=282801
Re: Anyone? -
ViciousRoleplay123 - 31.12.2013
Quote:
Originally Posted by StuartD
|
Thanks but my PC is not so advanced to use it.
Why don't u remove it and give the codes please?
Re: Anyone? -
Stereotype - 31.12.2013
That object is whole fence around area... anyway if you wanna remove it use
RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
Re: Anyone? -
ViciousRoleplay123 - 31.12.2013
Quote:
Originally Posted by Stereotype
That object is whole fence around area... anyway if you wanna remove it use
RemoveBuildingForPlayer(playerid, 16094, 191.1406, 1870.0391, 21.4766, 0.25);
|
Thank you.
Anyway, is there a way that if a player have less than 100 score he won't be able to drive hydra/?
Re: Anyone? -
Stereotype - 31.12.2013
pawn Код:
if (IsAHydra(vehicleid) && !ispassenger) // Use this OnPlayerEnterVehicle
{
if(UserScore[playerid] >= 100) {} // Set however you check score
else {
new Float:cx, Float:cy, Float:cz;
GameTextForPlayer(playerid, "~w~You'r score is lower than 100!!", 4000, 5);
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
pawn Код:
public IsAHydra(carid)
{
if((carid >= 0) && (carid <= 10)) // Change to hydra id.. use /dl ingame and see id
{
return 1;
}
return 0;
}
Re: Anyone? -
ViciousRoleplay123 - 31.12.2013
Quote:
Originally Posted by Stereotype
pawn Код:
if (IsAHydra(vehicleid) && !ispassenger) // Use this OnPlayerEnterVehicle { if(UserScore[playerid] >= 100) {} // Set however you check score else { new Float:cx, Float:cy, Float:cz; GameTextForPlayer(playerid, "~w~You'r score is lower than 100!!", 4000, 5); GetPlayerPos(playerid, cx, cy, cz); SetPlayerPos(playerid, cx, cy, cz); } }
pawn Код:
public IsAHydra(carid) { if((carid >= 0) && (carid <= 10)) // Change to hydra id.. use /dl ingame and see id { return 1; } return 0; }
|
Not work. I can still drive Hydra with 1 score
My code:
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (IsAHydra(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pScore] >= 499) {}
else {
new Float:cx, Float:cy, Float:cz;
GameTextForPlayer(playerid, "~w~You need at least 500 scores to drive an hydra!", 4000, 5);
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx, cy, cz);
}
}
return 1;
}
public IsAHydra(carid)
{
if((carid == 520))
{
return 1;
}
return 0;
}
Re: Anyone? -
Pottus - 31.12.2013
What a idiot way to determine vehicles no other than Ravens Roleplay.
Re: Anyone? -
Stereotype - 31.12.2013
[uL]Pottus Gta rp *
Re: Anyone? -
ViciousRoleplay123 - 31.12.2013
Quote:
Originally Posted by [uL]Pottus
What a idiot way to determine vehicles no other than Ravens Roleplay.
|
Hmm.. Can u fix the code?