SA-MP Forums Archive
Changing yellow arrow icons into "i" icons? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Changing yellow arrow icons into "i" icons? (/showthread.php?tid=86291)



Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

I'm looking to find out how to change the defualt yellow arrow icons (like in SP to enter a biz/interior) to "i" icons, and then you go up to the "i" icon it will read text saying whatever I want to say on it. I can get the cords of the positions I want them in, but i'm not sure how to do it. Thank you for your help.


Re: Changing yellow arrow icons into "i" icons? - Abernethy - 13.07.2009

Learn here.


Re: Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

Quote:
Originally Posted by Abernethy
Learn here.
Going to try my best and post back here if I have trouble. But how do I get rid of the yellow arrows first?


Re: Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

Okay, I really don't get this. :S I want to create an pickup that you can do /enter at the LSPD front door, which will make you go inside. How can I do this?


Re: Changing yellow arrow icons into "i" icons? - Mr_Finnigan - 13.07.2009

Quote:
Originally Posted by Devine
Quote:
Originally Posted by Abernethy
Learn here.
Going to try my best and post back here if I have trouble. But how do I get rid of the yellow arrows first?
Under public OnGameModeInit()
Code:
DisableInteriorEnterExits();
But just know it gets rid of all yellow markers including dudes in ammunation/cluckin bell/pizza stack and chick in burger shot selling stuff too.So you would have to script every single building you want to be able to enter.
http://weedarr.wikidot.com/interior
This site has all interior id's and co-ords to use as where to end up after entering red marker



Re: Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

Alright, so I got some pickups off another script of mine, like for the LSPD and everything, but when I go up to them they don't do anything..? Like I wanted the one for the LSPD to TP inside of the interior.


Re: Changing yellow arrow icons into "i" icons? - Mr_Finnigan - 13.07.2009

246.783996,63.900199,1003.640625 are co-ords to go into LSPD so teleport to them/interior 6
Top of script
Code:
new PU1;
OnGameModeInit()
Code:
PU1 = CreatePickup(1239, 1,enter co-ords at enter point);
Then under OnPlayerPickupPickup add


Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == PU1)
{
              SetPlayerInterior(playerid, 6);
              SetPlayerPos(playerid, 246.783996,63.900199,1003.640625 );

}
return 1;
}



Re: Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

Quote:
Originally Posted by Mr_FinnigaN
246.783996,63.900199,1003.640625 are co-ords to go into LSPD so teleport to them/interior 6
Top of script
Code:
new PU1;
OnGameModeInit()
Code:
PU1 = CreatePickup(1239, 1,enter co-ords at enter point);
Then under OnPlayerPickupPickup add


Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == PU1)
{
              SetPlayerInterior(playerid, 6);
              SetPlayerPos(playerid, 246.783996,63.900199,1003.640625 );

}
return 1;
}
Alright thanks a lot, but will that work to get out from the inside aswell?


Re: Changing yellow arrow icons into "i" icons? - arnutisz - 13.07.2009

no, you need new pickup if you want to get out of interior.


Re: Changing yellow arrow icons into "i" icons? - Devine - 13.07.2009

Okay I have this script but i'm getting errors:

Errors:
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(1714) : error 029: invalid expression, assumed zero
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(1714) : warning 215: expression has no effect
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(1714) : error 001: expected token: ";", but found "if"
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(1714) : error 001: expected token: ",", but found "."
C:\Users\Owner\Desktop\New Folder\gamemodes\Alliance.pwn(1714) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Line 1714: else if (PlayerToPoint(4.1554.7753,-1675.7206,16.1953);