05.01.2017, 16:08
Quote:
Код:
#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;
}


