28.11.2015, 17:19
Tenta dessa forma:
@EDIT
Testei aqui e funcionou perfeitamente.
PHP код:
stock Checarveiculoportamala(Float:radi, playerid, vehicleid)
{
if(IsPlayerConnected(playerid)) {
new Float: X, Float: Y, Float: Z;
GetVehiclePos(vehicleid, X, Y, Z);
if(IsPlayerInRangeOfPoint(playerid, radi, X, Y, Z)) return 1;
}
return 0;
}
Testei aqui e funcionou perfeitamente.