Rank System Fail help - 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: Rank System Fail help (
/showthread.php?tid=373295)
Rank System Fail help -
Mr.Sanchez - 29.08.2012
Hello everyone. Ive been trying to make this Simple Rank System But It just Dosen't seem to work the way i want it.
This is the code
Код:
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) <= 10)
SendClientMessage(playerid, COLOR_RED,"Your Rank Is Private Therefore You Spawn With a Silenced 9mm");
GivePlayerWeapon(playerid,23,200);
if (GetPlayerScore(playerid) >= 10 && GetPlayerScore(playerid) <= 25)
SendClientMessage(playerid, COLOR_RED,"Your Rank Is Private First Class Therefore You Spawn With a Silenced 9mm & MP5");
GivePlayerWeapon(playerid,29,500);
if (GetPlayerScore(playerid) >= 25 && GetPlayerScore(playerid) <= 40)
SendClientMessage(playerid, COLOR_RED,"Your Rank Is Specialist Therefore You Spawn With a Deagle & Ak47 & Uzi");
SendClientMessage(playerid, COLOR_TURQ,"Bonus:You're a Specialist Therefore you spawn with A Better Weapon Skill!");
The thing is. whenever the Player Spawns. He gets all of the stuff alerady. without Having The Score itself. I don't understand. [as i am begginer] Could you Please Help Me Fix O_o :P
Can Anyone Make me a Rank System Based on This!? I can edit the rank names Later Please!?
Re: Rank System Fail help -
Mr.Sanchez - 30.08.2012
Sorry for bumping or w.e But HELP! ;c
Respuesta: Rank System Fail help -
Juan_Viz - 11.09.2012
I think you need a "else" Before the "if"'s