Quote:
Originally Posted by HolyScripter
pawn Код:
CMD:teleplayer(playerid, params[]) { new giveplayerid; if(sscanf(params, "u", giveplayerid)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoid [playerid]");
new Float:plocx,Float:plocy,Float:plocz; if (IsPlayerConnected(giveplayerid)) { GetPlayerPos(giveplayerid, plocx, plocy, plocz); SetPlayerVirtualWorld(playerid, PlayerInfo[giveplayerid][pVW]); Streamer_UpdateEx(playerid, plocx, plocy, plocz);
if (GetPlayerState(playerid) == 2) { new tmpcar = GetPlayerVehicleID(playerid); SetVehiclePos(tmpcar, plocx, plocy+4, plocz); TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0; } else { SetPlayerPos(playerid,plocx,plocy+2, plocz); SetPlayerInterior(playerid, GetPlayerInterior(giveplayerid)); SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(giveplayerid)); }
SendClientMessage(playerid, COLOR_GRAD1, " You have been teleported!"); }
} else SendClientMessage(playerid, COLOR_GRAD1, "Invalid player specified."); return 1; }
Here you are ,
|
Last post was nearly a week ago, and the last post was telling the person exactly what he wanted, i.e. a /teleplayer [playerid] [place]. Your command's not even fitting the needs of what the guy wants. Anyway, be a bit more careful next time before you post and check the dates.