GoTo - 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: GoTo (
/showthread.php?tid=109970)
GoTo -
patchkinson - 23.11.2009
How can i make it so if a player presses TAB and presses a player name, the player Goes to the one he pressed!!
Re: GoTo -
Correlli - 23.11.2009
-
https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
-
https://sampwiki.blast.hk/wiki/SetPlayerPos,
https://sampwiki.blast.hk/wiki/SetPlayerInterior,
https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Re: GoTo -
patchkinson - 23.11.2009
Thanks
Re: GoTo -
radhakr - 23.11.2009
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
new Float:pos[3];
GetPlayerPos(clickedplayerid, pos[0], pos[1], pos[2]);
if(IsPlayerInAnyVehicle(playerid) && GetPlayerVehicleSeat(playerid) == 0)
SetVehiclePos(GetPlayerVehicleID(playerid), pos[0]+5, pos[1], pos[2]);
else
SetPlayerPos(playerid, pos[0]+1, pos[1], pos[2]);
return 1;
}
Should work.
Re: GoTo -
patchkinson - 23.11.2009
Many thanks but next time please do as don correli did

i want to learn and code it myself

but thanks though
Re: GoTo -
radhakr - 23.11.2009
I normally would, but Correlli had already posted and I had that code open in my script anyway :P
Re: GoTo -
patchkinson - 23.11.2009
xDDD
thanks

but i read the wiki anyway!
Re: GoTo -
-8oHd4N- - 23.11.2009
pm command works too? how? Thanks for your help