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
Rep for the one who figures this out
Danialdano
Banned
Posts: 118
Threads: 23
Joined: May 2011
#1
03.12.2013, 10:42
dddd
Find
Reply
Voxel
Gangsta
Posts: 578
Threads: 56
Joined: Sep 2013
Reputation:
0
#2
03.12.2013, 10:45
Under OnPlayerUpdate
pawn Код:
if
(
GetPlayerWeapon
(
playerid
)
==
0
)
{
SetPlayerArmedWeapon
(
playerid,
1
,
1
)
;
}
https://sampwiki.blast.hk/wiki/GetPlayerWeapon
https://sampwiki.blast.hk/wiki/SetPlayerArmedWeapon
you could go even further then this and create a function that detects the players last weapon and set him back to it when the script detects he has "fists" which is weapon id 0.
good luck!
Find
Reply
Don_Cage
High-roller
Posts: 1,072
Threads: 168
Joined: Aug 2012
Reputation:
0
#3
03.12.2013, 10:47
EDIT: Voxel was first :P
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: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help