Only one gun?
#1

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.
Reply
#2

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
Reply
#3

ok thanks.
Reply
#4

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.
Reply
#5

Just put these lines under OnGameModeInit
pawn Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_SAWNOFF_SHOTGUN, 999);
and so on for all guns
Reply
#6

ok ty is 999 2 sawnoff shotguns?
Cus i need one
Reply
#7

Quote:
Originally Posted by TeRRoRism
ok ty is 999 2 sawnoff shotguns cus i need one
No problem
Reply
#8

It says undenifeid symbol "playerid", include?
Reply
#9

Oh sorry my mistake , said that by mistake , put everything under OnPlayerSpawn
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)