Nu te inregistra daca esti idiot sau agramat!
AlphaCS.RO[ORIGINAL GAMING]
Thanks:
0
Likes:
0
-
[Tutorial] Adding a icon for a teleport
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()
Code:
new stuntpark;
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: http://wiki.sa-mp.com/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
Similar Threads
-
By SergiuOfficial in forum Tutoriale
Replies: 0
Last Post: 28-07-17, 20:07
-
By SergiuOfficial in forum Tutoriale
Replies: 0
Last Post: 10-06-17, 21:03
-
By SergiuOfficial in forum Plugins
Replies: 0
Last Post: 15-05-17, 12:57
-
By SiNiSTER in forum Plugins
Replies: 0
Last Post: 03-03-17, 19:55
-
By Catalin. in forum Cereri
Replies: 12
Last Post: 16-02-15, 06:25
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules