How To Script XP system for Cops And Robbers? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How To Script XP system for Cops And Robbers? (
/showthread.php?tid=511296)
How To Script XP system for Cops And Robbers? -
MichealScript - 04.05.2014
i have my own San fierro cops and robbers server and i wanna know how to script the "XP" system for robberies and this things so can someone tell me how please? i will give 1+ rep to who tell me and please tell me with nice exlpain !!
Re: How To Script XP system for Cops And Robbers? -
PrivatioBoni - 04.05.2014
The question is slightly ambiguous. For what would you gain XP?
Re: How To Script XP system for Cops And Robbers? -
MichealScript - 04.05.2014
i want to install XP system for "army class for 20000 XP" and "CIA class for 10000 XP"
and Mafia class for 8000 XP and this things so please tell me
AW: How To Script XP system for Cops And Robbers? -
Nero_3D - 04.05.2014
We can only "guide" you, the most of the script you need to do yourself
You only need to know how to use
arrays and
if-statements
Firstly you create the array you store the XP and than add XP if the player completed some event
For the classes you need to add an if statement and check if the player has enough XP
Re: How To Script XP system for Cops And Robbers? -
Marshall32 - 04.05.2014
Its acctually easy, some variables, a few if statements. You seem like a noob at this
Re: How To Script XP system for Cops And Robbers? -
Beckett - 04.05.2014
So you want the XP is based on your score or what? explain briefly please.
Re: How To Script XP system for Cops And Robbers? -
MichealScript - 04.05.2014
No i get scores by Rob and get XP too.