25.10.2011, 15:50
When my server on, and on server are I and my friend I see my frien and his skin is not moving, and i teleport to him and he is far from skin, and he move, but skin dosent, pls help
public OnPlayerUpdate(playerid) { }
public OnPlayerUpdate(playerid) { return 1; }
public OnPlayerUpdate(playerid)
{
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,"Speed: %i",final_speed_int);
TextDrawSetString(SPEEDOS[playerid], speed_string);
}
else
{
TextDrawSetString(SPEEDOS[playerid], " ");
}
if(GetPVarInt(playerid, "EventKizla") == 1 && !IsPlayerInAnyVehicle(playerid))
{
GameTextForPlayer(playerid, "~r~STUNT FAJL", 3000, 4);
SetPVarInt(playerid,"Stunt1",0);
SetPVarInt(playerid,"Stunt2",0);
SetPVarInt(playerid,"Stunt3",0);
SetPVarInt(playerid,"Stunt4",0);
SetPVarInt(playerid,"Stunt5",0);
SetPVarInt(playerid,"Stunt6",0);
SetPVarInt(playerid, "EventKizla", 0);
DisablePlayerCheckpoint(playerid);
}
}
public OnPlayerUpdate(playerid)
{
new vehicleid,Float:speed_x,Float:speed_y,Float:speed_z,Float:final_speed,speed_string[256],final_speed_int;
vehicleid = GetPlayerVehicleID(playerid);
if(vehicleid != 0)
{
GetVehicleVelocity(vehicleid,speed_x,speed_y,speed_z);
final_speed = floatsqroot(((speed_x*speed_x)+(speed_y*speed_y))+(speed_z*speed_z))*136.666667;
final_speed_int = floatround(final_speed,floatround_round);
format(speed_string,256,"Speed: %i",final_speed_int);
TextDrawSetString(SPEEDOS[playerid], speed_string);
}
else
{
TextDrawSetString(SPEEDOS[playerid], " ");
}
if(GetPVarInt(playerid, "EventKizla") == 1 && !IsPlayerInAnyVehicle(playerid))
{
GameTextForPlayer(playerid, "~r~STUNT FAJL", 3000, 4);
SetPVarInt(playerid,"Stunt1",0);
SetPVarInt(playerid,"Stunt2",0);
SetPVarInt(playerid,"Stunt3",0);
SetPVarInt(playerid,"Stunt4",0);
SetPVarInt(playerid,"Stunt5",0);
SetPVarInt(playerid,"Stunt6",0);
SetPVarInt(playerid, "EventKizla", 0);
DisablePlayerCheckpoint(playerid);
}
return 1;
}