12.12.2014, 14:58
Mais aqui tenho que usar o playerid, pra pegar id do cara, como eu faзo?
@edit
presiso do id do cara que etб no veiculo pra altualizar as infoplayer dele, como eu faзo?
pawn Код:
public OnVehiclePosChange(vehicleid, Float:oldposx, Float:oldposy, Float:oldposz, Float:newposx, Float:newposy, Float:newposz)
{
new vehicleid = GetPlayerVehicleID(playerid);
GetVehiclePos(vehicleid, PlayerInfo[playerid][CarX], PlayerInfo[playerid][CarY], PlayerInfo[playerid][CarZ]);
printf("[%d] Old Position: [%f,%f,%f] New Position: [%f,%f,%f]", vehicleid, oldposx, oldposy, oldposz, newposx, newposy, newposz);
return 1;
}
presiso do id do cara que etб no veiculo pra altualizar as infoplayer dele, como eu faзo?
pawn Код:
public OnVehiclePosChange(vehicleid, Float:oldposx, Float:oldposy, Float:oldposz, Float:newposx, Float:newposy, Float:newposz)
{
PlayerInfo[playerid][CarX] = newposx;
PlayerInfo[playerid][CarY] = newposy;
PlayerInfo[playerid][CarZ] = newposz;
printf("[%d] Old Position: [%f,%f,%f] New Position: [%f,%f,%f]", vehicleid, oldposx, oldposy, oldposz, newposx, newposy, newposz);
return 1;
}