11.02.2017, 07:51
SAMP Synchronization is still suck, maybe this code working:
PHP код:
public OnMissileDestroy(mobid,Float:x,Float:y,Float:z,type,killerid){
Tryg3DForeach(i){
if(IsPlayerInRangeOfPoint(i,5.0,x,y,z)){
new Float:hp;
GetPlayerHealth(killerid,hp);
if(hp <= 0.0){
//bla bla bla
}
}
}
return 1;
}