You need this on "news"
This Defines Your Pickup.
Under OnGameModeInit:
PHP код:
pickup1 = CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld);
You go in any server and type /save [text] And Copy X, Y, Z from it, virtual world is mostly 0
Here is an example:
PHP код:
pickup1 = CreatePickup(1239, 19, 2116.7874, -1787.9985, 13.5547, 0);
Go on:
http://weedarr.wikidot.com/pickups to see pickups
Now when you create arrow where you want, to use it to enter somewhere or teleport somewhere use this:
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
That is called when player picks up any pickup you made.
Then type this.
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
SetPlayerPos(playerid,Float:x,Float:y,Float:z);
return 1;
}
That is when player picks up the pickup "pickup1" we made in OnGameModeInit
On SetPlayerPos you can put any location to enter, or if you want him to be in interior use this:
PHP код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup1)
{
SetPlayerPos(playerid,Float:x,Float:y,Float:z);
SetPlayerInterior(playerid, interiorid);
return 1;
}
Interiors at:
http://weedarr.wikidot.com/interior
LOL while i was typing explanations and all 3 answered