Teleport pickups - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleport pickups (
/showthread.php?tid=198274)
Teleport pickups -
[Lsrcr]Hoss - 11.12.2010
i have 1 error with teleport pickup who can help me
pawn Код:
new teleportpickup;
new teleportpickup1;
pawn Код:
teleportpickup = CreatePickup(1276,1, 318.30764770508, -2247.7016601563, 19.656326293945);
teleportpickup1 = CreatePickup(1210,1,967.01745605469, -53.267635345459, 1000.6781005859);
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == teleportpickup)
{
SetPlayerPos(playerid,964.76715087891,-53.326801300049,1000.6781005859);
}
if(pickupid == teleportpickup1)
{
SetPlayerPos(playerid,319.6847,-2247.5776,23.1755);
return 1;
}
What is the probblem who can help me
Re: Teleport pickups -
WillyP - 11.12.2010
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == teleportpickup)
{
SetPlayerPos(playerid,964.76715087891,-53.326801300049,1000.6781005859);
}
if(pickupid == teleportpickup1)
{
SetPlayerPos(playerid,319.6847,-2247.5776,23.1755);
}
return 1;
}
Re: Teleport pickups -
[Lsrcr]Hoss - 11.12.2010
Quote:
Originally Posted by [FU]Victious
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid) { if(pickupid == teleportpickup) { SetPlayerPos(playerid,964.76715087891,-53.326801300049,1000.6781005859); } if(pickupid == teleportpickup1) { SetPlayerPos(playerid,319.6847,-2247.5776,23.1755); } return 1; }
|
Thanks!!!
Re: Teleport pickups -
WillyP - 11.12.2010
You're welcome.