[Tutorial] Adding a icon for a teleport - 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: Tutorials (
https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] Adding a icon for a teleport (
/showthread.php?tid=162693)
Adding a icon for a teleport -
a!DaN)_)-) - 24.07.2010
Hey i thought i'd make a Tutorial for a; just say you want to create a icon where you walk into it and it shows you a command to teleport somewhere [example]
Well Here goes
Somewhere above main()
OnGameModInit:
PAWN Code:
Code:
stuntpark=CreatePickup(1239, 19, x, y, z);
^^Edit that info with your own. X, y, z is where the icon will be.
Pickups and icons:
https://sampwiki.blast.hk/wiki/Object_in...kups_and_Icons
Pickup types:
http://forum.sa-mp.com/index.php?top...sg1582#msg1582
PAWN Code:
Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if ( pickupid == stuntpark )
{
GameTextForPlayer(playerid,"~r~Use /stuntpark to go to the stuntpark", 6000, 1);
}
return 1;
}
PAWN Code:
Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/stuntpark", true)==0)
{
SendClientMessage(playerid,0xFF0000FF,"You are now in the Stunt Park");
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid,-1485.6780,1619.5634,1052.5313);
return 1;
}
return 0;
}
Hope This was a good Tutorial
Seen as its my first Please don't say it was shit
Re: Adding a icon for a teleport -
Hero_Of_War - 19.08.2010
I can use this..
Re: Adding a icon for a teleport -
Hiddos - 19.08.2010
I'd more call it an example, you're not quite explaining anything.
Re: Adding a icon for a teleport -
wolvaren1999 - 18.09.2013
Screen's please
Re: Adding a icon for a teleport -
Vege - 18.09.2013
Quote:
Originally Posted by Hiddos
I'd more call it an example, you're not quite explaining anything.
|
^that, you never really explained anything.
Re: Adding a icon for a teleport -
BlackbirdXd - 12.02.2017
Good tutorial very useful for newbies Keep it up!