08.09.2018, 20:42
As I wrote in 1st post, I do not have that file anymore on my pc.
I've scripted something that should work like that, I don't like it yet, needs a lot of improvements.
Anyways it's pretty simple:
I've scripted something that should work like that, I don't like it yet, needs a lot of improvements.
Anyways it's pretty simple:
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
if(newkeys & (KEY_AIM) || oldkeys & (KEY_AIM)){
if(HOLDING(KEY_FIRE) && oldkeys & (KEY_AIM)){
P[playerid][IsShooting] = true;
return 1;
}
P[playerid][IsShooting] = false;
return 1;
}
return 1;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ){
if(P[playerid][IsShooting] == false)SendClientMessage(playerid, -1, "Invalid bullet | Not shooting");
return 1;
}