31.05.2010, 15:11
How can I do that the goggles doesn't show up at all players but only on the player who have the goggle ?
Originally Posted by IcyBlight
As far as I know, they're pretty damned bugged, if they even work.
|
Originally Posted by Grim_
There's a released script to fix it on the forums.
|
#include <a_samp>
public OnPlayerUpdate(playerid)
{
switch(GetPlayerWeapon(playerid))
{
case 44, 45:
{
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
{
return 0;
}
}
}
return 1;
}
Originally Posted by Grim_
This works, tested it myself:
pawn Code:
|
Originally Posted by Sky4D
Quote:
|
Originally Posted by Headshot1108
Quote:
|
Originally Posted by DeathOnaStick
Think so, and i think it should also work under OnPlayerKeyStateChange. All in all it's okay like that but i think it would be better to put it under OnPlayerKeyStateChange, because it's not called as often as OnPlayerUpdate, but that's your decision.
|