Admin Teleport with click player on tab - 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)
+--- Thread: Admin Teleport with click player on tab (
/showthread.php?tid=432531)
Admin Teleport with click player on tab -
Kyo_CongTu - 23.04.2013
i want the admin when click player on tab and the admin will teleport to that player but player can't do that
and finally i want to use command to change teleport mode
like use /atpmode and it will teleport when click on tab and , /agetheremode , the admin will teleport to admin , it's possible ?
sorry my bad english
Re: Admin Teleport with click player on tab -
DaTa[X] - 23.04.2013
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
if(IsPlayerAdmin(playerid) {
new Float:X,Float:Y,Float:Z;
GetPlayerPos(clickedplayerid,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z+5);
return 1;
}
}
Re: Admin Teleport with click player on tab -
Kyo_CongTu - 23.04.2013
Quote:
Originally Posted by DaTa[X]
pawn Код:
public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if(IsPlayerAdmin(playerid) { new Float:X,Float:Y,Float:Z; GetPlayerPos(clickedplayerid,X,Y,Z); SetPlayerPos(playerid,X,Y,Z+5); return 1; } }
|
nice + rep