#1

How can i make it so if a player presses TAB and presses a player name, the player Goes to the one he pressed!!
Reply
#2

- https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
- https://sampwiki.blast.hk/wiki/SetPlayerPos, https://sampwiki.blast.hk/wiki/SetPlayerInterior, https://sampwiki.blast.hk/wiki/SetPlayerVirtualWorld
Reply
#3

Thanks
Reply
#4

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.
Reply
#5

Many thanks but next time please do as don correli did i want to learn and code it myself
but thanks though
Reply
#6

I normally would, but Correlli had already posted and I had that code open in my script anyway :P
Reply
#7

xDDD
thanks but i read the wiki anyway!
Reply
#8

pm command works too? how? Thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)