• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] How i can add this to my command?
#2
PHP Code:
CMD:goto(playeridparams[]) {



? ? ? ? if (!
sscanf(params"d"params[0])) {

? ? ? ? ? ? if (
IsPlayerConnected(params[0])) {

? ? ? ? ? ? ? ? if(
GetPlayerVirtualWorld(params[0]) != GetPlayerVirtualWorld (playerid)) return SendClientMessage(playerid, -1"Nope");

? ? ? ? ? ? ? ? new 
Floatp_x,Floatp_y,Floatp_z;

? ? ? ? ? ? ? ? 
GetPlayerPos(params[0], p_xp_yp_z);

? ? ? ? ? ? ? ? new 
interior GetPlayerInterior(params[0]);

? ? ? ? ? ? ? ? new 
vw GetPlayerVirtualWorld(params[0]);

? ? ? ? ? ? ? ? 
SetPlayerPos(playeridp_xp_yp_z);

? ? ? ? ? ? ? ? 
SetPlayerInterior(playeridinterior);

? ? ? ? ? ? ? ? 
SetPlayerVirtualWorld(playeridvw);

? ? ? ? ? ? ? ? return 
SendClientMessage(playerid, -1"Teleported.");

? ? ? ? ? ? } else 
SendClientMessage(playerid, -1"Player not found.");

? ? ? ? } else 
SendClientMessage(playerid, -1"/goto [playerid]");

? ? ? ? return 
1
  Reply


Messages In This Thread
RE: How i can add this to my command? - by Radical - 2021-02-18, 05:28 PM

Forum Jump: