31.12.2013, 11:41
Anyone help me removing these gates:
I couldn't find a way.
(Pic in attachments)
Regards,
ViciousRoleplay123
I couldn't find a way.
(Pic in attachments)
Regards,
ViciousRoleplay123
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 |
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); |
forward IsAHydra(carid);
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);
}
}
public IsAHydra(carid)
{
if((carid >= 0) && (carid <= 10)) // Change to hydra id.. use /dl ingame and see id
{
return 1;
}
return 0;
}
pawn Код:
pawn Код:
pawn Код:
|
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; }