29.01.2011, 12:57
pawn Код:
stock Teleport( playerid, Float: X, Float: Y, Float: Z, time ) SetTimerEx( "TeleportPlayer", time, false, "dfff", playerid, X, Y, Z );
forward TeleportPlayer( playerid, Float: X, Float: Y, Float: Z );
public TeleportPlayer( playerid, Float: X, Float: Y, Float: Z )
{
if( !IsPlayerInAnyVehicle( playerid ) ) SetPlayerPos( playerid, X, Y, Z );
else SetVehiclePos( GetPlayerVehicleID( playerid ), X, Y, Z );
return true;
}
Teleport( playerid, 0.0, 0.0, 0.0, 1000 );
Will set player coordinates to 0.0 in 1sec