Please Help - 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: Please Help (
/showthread.php?tid=84850)
Please Help -
En_phase - 03.07.2009
I have working menus, but i cant able the teleport menus to teleport while in a vehicle. Please help me
And the help menu also needs to work inside a vehicle.
http://pastebin.com/m2c113f14
Re: Please Help -
MadeMan - 03.07.2009
When player is on foot you have to teleport the player, but when player is in vehicle you have to teleport the vehicle.
Re: Please Help -
En_phase - 03.07.2009
??
I tried to add to the menu script like we do to the onplayercommandtext normal teleport, like SetVehiclePos
It didnt work
Maybe i did it wrong
Please go to my pastebin, and for 1 example able it to teleport or exec the menu action in a vehicle..
Re: Please Help -
En_phase - 03.07.2009
I really need help in this.
Please
Re: Please Help -
MadeMan - 03.07.2009
Example:
pawn Код:
public OnPlayerSelectedMenuRow(playerid,row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
if(CurrentMenu == teleportmenu)
{
new playerveh = GetPlayerVehicleID(playerid);
switch(row)
{
case 0:
{
LinkVehicleToInterior(playerveh, 0);
SetVehiclePos(playerveh,425.4041,2528.9944,16.6491);
SendClientMessage(playerid, 0xFFFFFFFF, "You have spawned at Boneyard");
}
}
}
return 1;
}
Re: Please Help -
En_phase - 03.07.2009
thanks. i have to do that with every case?
Re: Please Help -
En_phase - 03.07.2009
?
Re: Please Help -
En_phase - 03.07.2009
It gave me 2 errors..... 1: not defined playerveh
2: variable needs to be in compounds
Re: Please Help -
En_phase - 03.07.2009
If ya can do it teamviewer its fine.
Add me on xfire and we talk
my xfire:enphase
Re: Please Help -
En_phase - 03.07.2009
help me please