07.12.2010, 14:22
Hello all. I've been away from samp/pawno for about a year. I have just come back and got my scripts sorted for 0.3b.
The only problem I have come across so far regards the use of grenades for parkour challenges. Before, you could throw a grenade (using it to jump higher and farther) and other players would not be able to see the grenade you have thrown. This limited disruption to other players when using grenades for parkour.
Now in 0.3b, the code I previously used no longer prevents other players from being able to see your thrown grenade. Can anybody offer me any suggestions?
Here is the code that I had successfully used in the past:
Thanks in advance!
The only problem I have come across so far regards the use of grenades for parkour challenges. Before, you could throw a grenade (using it to jump higher and farther) and other players would not be able to see the grenade you have thrown. This limited disruption to other players when using grenades for parkour.
Now in 0.3b, the code I previously used no longer prevents other players from being able to see your thrown grenade. Can anybody offer me any suggestions?
Here is the code that I had successfully used in the past:
Код:
new weaponSync = 0; // global variable to control weapon sync public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { // DESYNCING WEAPONS if(newkeys == 4) { if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) { if(!IsPlayerNPC(playerid)) { if(weaponSync == 0) { ApplyAnimation(playerid, "PED", "Fight2Idle", 4.1, 0, 0, 0, 0, 1); } } } } }