05.01.2011, 02:28
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if (!ispassenger)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerInVehicle(i,vehicleid))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid,X,Y,Z);
SetPlayerPos(playerid,X,Y,Z+5);
}
}
}
return 1;
}