Can somebody tell me how to create a rank system -
[FBI]M.Vulture[XAC] - 03.08.2011
Hello, please, can somebody tell me how to create a rank system, like, at 50 kills your rank change to "2"
Please
Click here to download my gamemode
Other quiestions:
-How to make "Kills = Points" The amount of kills are the amount of points.
-When you Choose a "Team", make apear in the name ["TEAM"](NAME).
Well, thats all, please, i think somebody can help me.
I only have 3 weeks scripting.
AW: Can somebody tell me how to create a rank system -
Nero_3D - 03.08.2011
First of all, welcome to the forums
Second we dont need your gamemode ^^
Questions 1. Rank System:
You need to track the kills for that we create a global player array
and than we increase it for the player if he kills someone
pawn Код:
// OnPlayerDeath
if(killerid != INVALID_PLAYER_ID) {
gKills[killerid]++; // increases the variable by 1
}
Question 2. Kills = Points:
pawn Код:
// OnPlayerDeath
if(killerid != INVALID_PLAYER_ID) {
gKills[killerid]++;
SetPlayerScore(killerid, gKills[killerid]); // sets the kills as score
}
Question 3. Teams:
pawn Код:
// Whenever you choose your team
new
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name); // gets the name
format(name, sizeof name, "[%s]%s", THE_TEAM_NAME, name); // adds the team name before
SetPlayerName(playerid, name); // sets the name again
Re: Can somebody tell me how to create a rank system -
[FBI]M.Vulture[XAC] - 03.08.2011
Oh, thanks, but i think all the ranks will be deleted, because thats not saved in a file, can somebody tell me how to save it in a file, please
Re: Can somebody tell me how to create a rank system -
Mean - 03.08.2011
What saving method are you using?
Re: Can somebody tell me how to create a rank system -
[FBI]M.Vulture[XAC] - 03.08.2011
Dini
Re: Can somebody tell me how to create a rank system -
Tigerkiller - 03.08.2011
dini are slow just change to SII or MySQL
i think mysql is the best saving method
Re: Can somebody tell me how to create a rank system -
[FBI]M.Vulture[XAC] - 04.08.2011
i only know how to use dini