29.04.2014, 01:32
(
Последний раз редактировалось spykidz01; 29.04.2014 в 01:35.
Причина: fck
)
what is wrong with my onplayerupdate? why do players join my server is on bug, they aren't moving and show that they are paused?
he shoot me with a gun, but he is paused!
Код:
public OnPlayerUpdate(playerid)
{
WantedLevelColor(playerid);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
for(new i = 0; i < sizeof(SInfo); i ++)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, SInfo[i][SX], SInfo[i][SY], SInfo[i][SZ]))
{
if(SInfo[i][SpikeCreated] == 1)
{
new panels, doors, lights, tires;
new carid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(carid, panels, doors, lights, tires);
tires = encode_tires(1, 1, 1, 1);
UpdateVehicleDamageStatus(carid, panels, doors, lights, tires);
return 0;
}
}
}
}
return 1;

