19.02.2011, 17:28
(
Last edited by [WTF]Godfather; 24/02/2011 at 11:34 AM.
)
PICKUP TELEPORT TUTORIAL
Introduction:
You : Omg, I don't know how to make a pickup teleport i tried 100 way but didn't worked
Me : Oh Today you will know how to , don't worry, im here for helping people and for i get helped from others
Let's begin
First thing we will do is DEFINE the pickup as the name you choose
STEP1
script:
Good we have define it now let's create the pickup
STEP2
script:
Good job now let's move to the next Step
STEP3:
On this step we will make the pickup teleport the player that pick up it!!
Good
Done made by [WTF]Godfather Please feel free to post if there's a problem or error so we can fix it
And if you got any other idea or another pickup script type please post it and feel free as i said
Thanks you viewing my Tutorial i hope you like it
Introduction:
You : Omg, I don't know how to make a pickup teleport i tried 100 way but didn't worked
Me : Oh Today you will know how to , don't worry, im here for helping people and for i get helped from others
Let's begin
First thing we will do is DEFINE the pickup as the name you choose
STEP1
script:
Code:
new pickup1;
STEP2
script:
Code:
pickup1 = CreatePickup(1239, 19, 2343.802734375 ,547.4677734375 ,6029.7553710938);
Code:
//CreatePickup(model, type of spawn, Float:X, Float:Y, Float:Z,virtualworld = 0);
STEP3:
On this step we will make the pickup teleport the player that pick up it!!
Good
Code:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == pickup1)//Here is our pickup the pickup1 { SetPlayerPos(playerid, x, y, z); //Here is the functions we will use!! SendClientMessage(playerid, 0xFFFF00FF, "You have been teleported to X"); return 1; } return 0; }// Good we are done now
And if you got any other idea or another pickup script type please post it and feel free as i said
Thanks you viewing my Tutorial i hope you like it