[HELP]Make gun disappear -
whitedragon - 23.04.2010
How make that the weapon will disappear when you take it out....
Re: [HELP]Make gun disappear -
dcmd_crash - 23.04.2010
pawn Код:
public OnPlayerUpdate(playerid)
{
//if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) { // Uncomment this to use just in interiors.
SetPlayerArmedWeapon(playerid,0); // fists
return 0; // no syncing until they change their weapon
//} // and this
return 1;
}
Otherwise, just leave it as that.
Re: [HELP]Make gun disappear -
whitedragon - 23.04.2010
But its just set hand but gun exist....
Re: [HELP]Make gun disappear - WackoX - 23.04.2010
Quote:
Originally Posted by _❼_
pawn Код:
public OnPlayerUpdate(playerid) { //if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) { // Uncomment this to use just in interiors. SetPlayerArmedWeapon(playerid,0); // fists return 0; // no syncing until they change their weapon //} // and this return 1; }
Otherwise, just leave it as that.
|
With that code you will get an error and nobody is every synced.
Re: [HELP]Make gun disappear -
dcmd_crash - 23.04.2010
Lol no you won't, it's straight out of my GM.
It sets the armed weapon to fists when the weapon is took out, since OnPlayerUpdate is called every 1000ms or w/e it is it works fine, go test it.
Unless you mean because I commented out the interior thing, anybody with a brain would know that you need the weapon check. Do it like this:
pawn Код:
public OnPlayerUpdate(playerid)
{
//if(GetPlayerWeapon(playerid) != 0)
{
SetPlayerArmedWeapon(playerid,0); // fists
return 0; // no syncing until they change their weapon
}
return 1;
}
Ok, now go test.
Re: [HELP]Make gun disappear -
Obie27 - 23.04.2010
Quote:
Originally Posted by _❼_
Lol no you won't, it's straight out of my GM.
It sets the armed weapon to fists when the weapon is took out, since OnPlayerUpdate is called every 1000ms or w/e it is it works fine, go test it.
Unless you mean because I commented out the interior thing, anybody with a brain would know that you need the weapon check. Do it like this:
pawn Код:
public OnPlayerUpdate(playerid) { //if(GetPlayerWeapon(playerid) != 0) { SetPlayerArmedWeapon(playerid,0); // fists return 0; // no syncing until they change their weapon } return 1; }
Ok, now go test. 
|
you are returning 0, tard
Re: [HELP]Make gun disappear -
dcmd_crash - 23.04.2010
Go learn PAWN before you use dangerous Irony like that.
Re: [HELP]Make gun disappear -
Obie27 - 23.04.2010
Quote:
Originally Posted by _❼_
Go learn PAWN before you use dangerous Irony like that.
|
Are you a complete retard?
Quote:
Originally Posted by [url]https://sampwiki.blast.hk/wiki/OnPlayerUpdate
[/url]
Returns 0 - Update from this player will not be replicated to other clients.
Returns 1 - Indicates that this update can be processed normally and sent to other players.
|
Time for you to go and read some scripting tutorials, Also learn the meaning of the word 'Irony' while your at it.
Re: [HELP]Make gun disappear -
dcmd_crash - 23.04.2010
Have you tested this?! Go test it, then come back and stfu crying like a Grade A internet troll.
Re: [HELP]Make gun disappear -
Obie27 - 23.04.2010
Quote:
Originally Posted by _❼_
Have you tested this?! Go test it, then come back and stfu crying like a Grade A internet troll.
|
You seriously are retarded, Try testing it with more than one person and watch what happens dipshit.
Re: [HELP]Make gun disappear -
Calgon - 23.04.2010
Disgard
Re: [HELP]Make gun disappear -
dcmd_crash - 23.04.2010
I totally failed. I don't understand how I couldn't of seen that... it's been in there for fucking months.
Ahh well -
Troll: 1
Me: 0
gg.
Re: [HELP]Make gun disappear -
whitedragon - 23.04.2010
Hmm but how do that it dont take gun what admin give ?
Re: [HELP]Make gun disappear -
Onyx09 - 23.04.2010
Quote:
Originally Posted by _❼_
Go learn PAWN before you use dangerous Irony like that.
|
you should learn pawno not all functions are the same so are not the GM's buddy between stop insulting people