Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
Weapon Skill?
Gooday
Huge Clucker
Posts: 489
Threads: 218
Joined: Nov 2011
Reputation:
0
#1
26.03.2012, 16:51
Hello I made a command /tec9 it basically gives a tec 9 but I want that the player can use one not 2 :8 How can i set the "skill" so let him shoot with just one?
Find
Reply
Mauzen
High-roller
Posts: 4,878
Threads: 85
Joined: Jun 2007
Reputation:
0
#2
26.03.2012, 16:54
Take a look at this function:
https://sampwiki.blast.hk/wiki/SetPlayerSkillLevel
Find
Reply
arman'as
Little Clucker
Posts: 42
Threads: 15
Joined: Mar 2012
Reputation:
0
#3
26.03.2012, 16:57
on call back OnPlayerSpawn(playerid) put this code:
SetPlayerSkillLevel(playerid, WEAPONSKILL_MICRO_UZI, 1);
Find
Reply
sniperwars
Huge Clucker
Posts: 441
Threads: 35
Joined: Jan 2011
Reputation:
0
#4
26.03.2012, 17:36
Add this to your script:
pawn Код:
public
OnPlayerSpawn
(
playerid
)
{
SetPlayerSkillLevel
(
playerid, WEAPONSKILL_MICRO_UZI,
1
)
;
return
1
;
}
You can refer
here
for the skill levels.
You can refer
here
for more info.
Hope this helped. Please rep if it does work.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 2 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help