Yellow Marker how to add - 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: Yellow Marker how to add (
/showthread.php?tid=405704)
Yellow Marker how to add -
hallonet99 - 07.01.2013
Hello
Im are tired to type ./enter and ./exit when enter or exit a building are there a script that add yellow markers
.
Answer plz!
Re: Yellow Marker how to add -
Fabio11 - 07.01.2013
I don't think there is a script with yellow markers ( besides not using DisableInteriorEnterExits(); ), however you can enter a building by pressing ENTER like this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_SECONDARY_ATTACK)) // Enter Key
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, x, y, z)) // Your icon coords
{
SetPlayerPos(playerid, x, y, z, a); // Your int coords
SetPlayerInterior(playerid, id); // Your int id
SetPlayerVirtualWorld(playerid, id); // Your VW id
}
}
return 1;
}
Check this
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Re: Yellow Marker how to add -
hallonet99 - 07.01.2013
Im not so high tech on this scripting and stuff but can you tell me were i put that code and how.
Re: Yellow Marker how to add -
Fabio11 - 07.01.2013
If you're not so high tech then you should leave scripting or get better, you can't just come here and ask everytime you want a new implementation to your GM...
Check this post:
https://sampforum.blast.hk/showthread.php?tid=92
Re: Yellow Marker how to add -
hallonet99 - 07.01.2013
But i can a Little bit were can i put that code plz say.
Re: Yellow Marker how to add -
[CG]Milito - 07.01.2013
Just use Pickups!
pawn Код:
public OnGameModeInit ()
{
Enter = CreatePickup(1559,1,X,Y,Z,-1);
return 1;
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == enter) SetPlayerPos(playerid,X,Y,Z);
return 1;
}
Re: Yellow Marker how to add -
hallonet99 - 09.01.2013
Were can i add that code [CG Milito]
Tell me thx.