Posts: 150
Threads: 34
Joined: Jan 2010
Reputation:
0
i want to make a pickup that only admins can use to teleport to the admin mansion interior
mansion coords
x:2290.9191894531 y:590.51232910156 z:125.54639434814
pickup coords
x:2314.4685058594 y:568.81640625 z:8.5382442474365
Posts: 221
Threads: 19
Joined: Nov 2009
Lol, Use teh wiki and also you need the X,Y,Z Of where you want the pickup
Posts: 221
Threads: 19
Joined: Nov 2009
Код:
At The top of your script:
new tele;
OnGameModeInit
tele = CreatePickup(356,2314.4685058594 ,568.81640625 ,8.5382442474365);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == tele) // ...
{
SetPlayerPos(playerid,2290.9191894531,590.51232910156 ,125.54639434814);
}
}
return 1;
}
At top of the script:
new AdminHousePickup;
At game mode init:
AdminHousePickup = CreatePickup(1273,23,PICKUP COORDS HERE ...);
at if player pick up pickup:
if (pickupid == AdminHousePickup
SetPlayerPos(playerid,COORDS HERE ...);
SetPlayerInterior(playerid,INTERIOR ID HERE ...);
Posts: 221
Threads: 19
Joined: Nov 2009
Quote:
Originally Posted by [LSR
State_Trooper ]
Код:
At The top of your script:
new tele;
OnGameModeInit
tele = CreatePickup(356,2314.4685058594 ,568.81640625 ,8.5382442474365);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == tele) // ...
{
SetPlayerPos(playerid,2290.9191894531,590.51232910156 ,125.54639434814);
}
}
return 1;
}
|
Posts: 788
Threads: 22
Joined: May 2006
Reputation:
0
You have all messed up the scopes.