Single Handed Weapons?
#1

Well me and about 20 friends are running a small Roleplay server and,
I spawned a Colt .45 to test the single handed, though it is still a dual.
I logged on another server and there they managed to set it one handed.

Searched the forum though didn't find it.
What do I need to do?

Peace.
Reply
#2

Use the scripting function: SetPlayerSkillLevel.
Reply
#3

Which public is that?
And could you show me how do I put this in the code?
Reply
#4

Damn, the wiki isn't loading, I cant give you the wiki page for SetPlayerSkillLevel ):

Basically, you can do it when they connect SetPlayerSkillLevel(playerid,weapon,skilllevel);
Reply
#5

Quote:
Originally Posted by [B
Vortex ]
Damn, the wiki isn't loading, I cant give you the wiki page for SetPlayerSkillLevel ):

Basically, you can do it when they connect SetPlayerSkillLevel(playerid,weapon,skilllevel);
Lol
I ain't good with scripting.

Do I put this in OnPlayerSpawn or in OnGameModInit?

And what do I type below it?
For example, if I want a single-handed Sawn, Colt 45, Tec9 and Uzi?
Reply
#6

OnPlayerSpawn(playerid)
Код:
SetPlayerSkill(playerid, WEAPON_PISTOL, 1)
Somewhere else...
Код:
GivePlayerWeapon(playerid,WEAPON_COLT45,100);
Reply
#7

Quote:
Originally Posted by WESTre
OnGamemodeInit
Код:
SetPlayerSkill(playerid, WEAPON_PISTOL, 1)
Somewhere else...
Код:
GivePlayerWeapon(playerid,WEAPON_COLT45,100);
Код:
error 017: undefined symbol "SetPlayerSkill"
Uh?
Reply
#8

Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
My bad.
Reply
#9

Quote:
Originally Posted by WESTre
Код:
SetPlayerSkillLevel(playerid, WEAPONSKILL_PISTOL, 1);
My bad.
Код:
error 017: undefined symbol "playerid"
Pfff what the hell? XD
Reply
#10

Try it under
Код:
OnPlayerSpawn(playerid)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)