[Help]Pickup Teleport
#9

Quote:
Originally Posted by RyderX
Посмотреть сообщение
[Tutorial] Pickup Teleport

This Might Help you out.
Код:
#include <a_samp>

new casino; // for example
new casinoext;
 // for example // also u can change the name for e.g. to ( new samp; ) but you have to change every name

public OnFilterScriptInit()
{
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}
public OnGameModeInit()
{
	casino = CreatePickup(1318, 1, 1402.6344, -1697.8345, 13.5533,0); // so that's the : ls = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld); which i told you in the tut
	casinoext = CreatePickup(1318, 1, 2019.0698, 1017.8581, 996.8750,1);
	return 1;
}

public OnGameModeExit()
{
	return 1;
}


public OnPlayerPickUpPickup(playerid, pickupid)// <---- that's when the player picks the pickup // Also X, Y, Z are the coords where the player will teleport to
{
	if(pickupid == casino) SetPlayerPos(playerid,2016.2699,1017.7790,996.8750);
    SetPlayerInterior(playerid,10);
    if(pickupid == casinoext) SetPlayerPos(playerid,1402.6344,-1697.8345,13.5533);
    SetPlayerInterior(playerid,0);
	return 1;
}
When i go to the game and enter it spawn's me in the air but without the ext checkpoint it work's normal wtf ?
Reply


Messages In This Thread
[Help]Pickup Teleport - by Ihabou - 05.01.2017, 11:08
Re: [Help]Pickup Teleport - by CutX - 05.01.2017, 11:46
Re: [Help]Pickup Teleport - by Ihabou - 05.01.2017, 12:13
Re: [Help]Pickup Teleport - by Ihabou - 05.01.2017, 14:14
Re: [Help]Pickup Teleport - by CutX - 05.01.2017, 14:19
Re: [Help]Pickup Teleport - by Ihabou - 05.01.2017, 15:25
Re: [Help]Pickup Teleport - by RyderX - 05.01.2017, 15:28
Re: [Help]Pickup Teleport - by Ihabou - 05.01.2017, 15:34
Re: [Help]Pickup Teleport - by Ihabou - 05.01.2017, 16:08
Re: [Help]Pickup Teleport - by CutX - 05.01.2017, 16:28

Forum Jump:


Users browsing this thread: 2 Guest(s)