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
Will this make it so a player can rob 5% of the other players money?
101
Big Clucker
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
#1
30.12.2012, 15:04
new cash = GetPlayerMoney(pID);
new Float
teal = cash * 0.05;
and
GivePlayerMoney(playerid, floatround(steal));
Find
Reply
lelemaster
Big Clucker
Posts: 199
Threads: 1
Joined: Jul 2012
Reputation:
0
#2
30.12.2012, 15:31
Try and you'll see, no?
Give a player 100$, then rob him, if you rob him 5$, then it works, if not, it doesn't.
Find
Reply
Virus.
Big Clucker
Posts: 115
Threads: 16
Joined: Oct 2012
Reputation:
0
#3
30.12.2012, 15:33
Yes, this will most probably do it
Find
Reply
Konstantinos
Spam Machine
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
#4
30.12.2012, 15:39
Just test it and you'll see. If it doesn't work, just use the simpliest way, by getting the money * 5 / 100.
Find
Reply
Virus.
Big Clucker
Posts: 115
Threads: 16
Joined: Oct 2012
Reputation:
0
#5
30.12.2012, 15:56
Quote:
Originally Posted by
Dwane
just use the simpliest way, by getting the money * 5 / 100.
Thats what he did. He just simplified it more.
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