03.12.2010, 21:41
Also, let me quickly introduce you to the 'World' of stocks.
Usage:
pawn Код:
stock TelePlayer(playerid, Float:X, Float:Y, Float:Z, interior)
{
SetPlayerInterior(playerid, interior);
if(IsPlayerInAnyVehicle(playerid))
{
SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);
}
else SetPlayerPos(playerid, X, Y, Z);
return 1;
pawn Код:
TelePlayer(playerid, 0.0, 0.0, 0.0, 5); // Location in middle of the world, and interior id 5..