Quote:
Originally Posted by heufix
Quote:
Originally Posted by » ραωпsтαг «
TelePlayerToPlayer
Код:
stock TeleportPlayerToPlayer(playerid, gotoID)
{
new Float: X, Float: Y, Float Z;
GetPlayerPos(gotoID,X,Y,Z);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid),X+3,Y,Z);
} else {
SetPlayerPos(playerid,X+2,Y,Z);
}
}
|
pawn Код:
stock TeleportPlayerToPlayer(playerid, gotoID) { new Float: X, Float: Y, Float Z; GetPlayerPos(gotoID,X,Y,Z); if(GetPlayerState(playerid) == 2) SetVehiclePos(GetPlayerVehicleID(playerid),X+3,Y,Z); else SetPlayerPos(playerid,X+2,Y,Z); }
imho.
|
pawn Код:
stock TeleportPlayerToPlayer(playerid, gotoID)
{
new Float: X, Float: Y, Float Z;
GetPlayerPos(gotoID,X,Y,Z);
if(GetPlayerState(playerid) == 2 || GetPlayerState(playerid) == 3) SetVehiclePos(GetPlayerVehicleID(playerid),X+3,Y,Z+0.2);
else SetPlayerPos(playerid,X+2,Y,Z0.2);
}
imo