Only one gun? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Only one gun? (
/showthread.php?tid=104281)
Only one gun? -
Darekfred - 23.10.2009
I heard thati 0.3 added a only 1 gun thing, like you can hold olnly one handgun.
Is that true?
If is how to get?
If there is another topic about this, send link.
Re: Only one gun? -
Peter_Corneile - 23.10.2009
It has skill levels just like in single player game .. You will have to set the player's weapon skill level to more or less
Re: Only one gun? -
Darekfred - 23.10.2009
ok thanks.
Re: Only one gun? -
Darekfred - 23.10.2009
I did like this
Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 200); //handgun
}
return 1;
}
But it doesnt give error and warning it just not read it.
And ingame nothing happens, could i have a little help please, i took i from
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel but it wont help.
Re: Only one gun? -
Peter_Corneile - 23.10.2009
Just put these lines under OnGameModeInit
pawn Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
and so on for all guns
Re: Only one gun? -
Darekfred - 23.10.2009
ok ty is 999 2 sawnoff shotguns?
Cus i need one
Re: Only one gun? -
Peter_Corneile - 23.10.2009
Quote:
Originally Posted by TeRRoRism
ok ty is 999 2 sawnoff shotguns cus i need one
|
No problem
Re: Only one gun? -
Darekfred - 23.10.2009
It says undenifeid symbol "playerid", include?
Re: Only one gun? -
Peter_Corneile - 23.10.2009
Oh sorry my mistake , said that by mistake , put everything under OnPlayerSpawn
Re: Only one gun? -
Johnstonio - 23.10.2009
Quote:
Originally Posted by TeRRoRism
It says undenifeid symbol "playerid", include?
|
Because stupidly enough, Peter Corneile blatantly forgot that there is no playerid parameter in the OnGameModeInit callback.
EDIT: Peter corrected his mistake, see his post above.