Anyone?
#1

Anyone help me removing these gates:

I couldn't find a way.
(Pic in attachments)
Regards,
ViciousRoleplay123
Reply
#2

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
Reply
#3

Quote:
Originally Posted by StuartD
Посмотреть сообщение
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
Thanks but my PC is not so advanced to use it.
Why don't u remove it and give the codes please?
Reply
#4

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);
Reply
#5

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/?
Reply
#6

pawn Код:
forward IsAHydra(carid);
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;
}
Reply
#7

Quote:
Originally Posted by Stereotype
Посмотреть сообщение
pawn Код:
forward IsAHydra(carid);
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;
}
Reply
#8

What a idiot way to determine vehicles no other than Ravens Roleplay.
Reply
#9

[uL]Pottus Gta rp *
Reply
#10

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
What a idiot way to determine vehicles no other than Ravens Roleplay.
Hmm.. Can u fix the code?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)