23.11.2009, 17:11
How can i make it so if a player presses TAB and presses a player name, the player Goes to the one he pressed!!
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;
}