Pickup Teleport -
[WTF]Godfather - 19.02.2011
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:
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);
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
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
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
Re: Pickup Teleport -
Rock18 - 19.02.2011
Very ease and useful for others . Thanks .
Re : Pickup Teleport -
[WTF]Godfather - 19.02.2011
No problem my friend yes it's usefull and easiest way for new scripters (Newbies)
Re: Pickup Teleport -
admantis - 19.02.2011
Good tutorial
Re : Pickup Teleport -
[WTF]Godfather - 19.02.2011
Thanks
Re: Pickup Teleport -
BladerDildo - 24.02.2011
Awesome and helpful.
Re: Pickup Teleport -
alpha500delta - 24.02.2011
For tutorials you should use 0xFFFF00FF instead of COLOR_RED, otherwise newbies will have errors while compiling, if they do not know how to define such. But for the rest its a nice tutorial
Re : Re: Pickup Teleport -
[WTF]Godfather - 24.02.2011
Quote:
Originally Posted by alpha500delta
For tutorials you should use 0xFFFF00FF instead of COLOR_RED, otherwise newbies will have errors while compiling, if they do not know how to define such. But for the rest its a nice tutorial
|
Fixed thanks you
Re: Pickup Teleport - Max_Coldheart - 26.02.2011
Good tutorial my friend
Re: Pickup Teleport -
HyperZ - 26.02.2011
Next time use [pawn] [/pawn ] (Without that space)
Re: Pickup Teleport -
MrND - 27.02.2011
When I enter the Pickup, and get back, pickup disappears and I can't enter anymore, also doesn't work with cars.
Re: Pickup Teleport -
alpha500delta - 27.02.2011
Quote:
Originally Posted by MrND
When I enter the Pickup, and get back, pickup disappears and I can't enter anymore, also doesn't work with cars.
|
That's true, he used pickupid 19 in the code wich is pickupable. I would recommend using pickpid 1 as it exists all the time. For a complete list, look
here
Re: Pickup Teleport -
MrND - 28.02.2011
Quote:
Originally Posted by alpha500delta
That's true, he used pickupid 19 in the code wich is pickupable. I would recommend using pickpid 1 as it exists all the time. For a complete list, look here
|
Thanks, It helped me a lot.
Re : Pickup Teleport -
ahmed73 - 13.10.2011
h i want to make the pickup just for team cops for exemple , so other teams can not enter the pickup help me please
Re: Pickup Teleport -
NessaHD - 13.10.2011
Maybe a little bit more explanation, but else awesome tutorial!
Re: Pickup Teleport -
JazzGaming - 27.09.2018
Quote:
pickup1 = CreatePickup(1239, 19, 2343.802734375 ,547.4677734375 ,6029.7553710938 );
|
to be added here;
pawn Code:
public OnGameModeInit()
{
pickup1 = CreatePickup(1239, 19, 2343.802734375 ,547.4677734375 ,6029.7553710938);
return 1;
}
Re: Pickup Teleport -
Pwn3D - 29.09.2018
great one