10.07.2012, 11:27
Guys I made a simple rank system, this is my first script, but I want to check you what I need more, or to change.
Please leave your ideas/improvements.
It sends message when player comes online with the rank, and when player gets new rank, I hope?
plz let me know what I need to add more, or change.
Thanks
Please leave your ideas/improvements.
PHP код:
public OnPlayerConnect(playerid)
{
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
GetPlayerScore(playerid);
if PlayerScore > 1
SendClientMessageToAll "%s has logged in with the rank: Newbie Trucker",pName);
if PlayerScore > 50
SenClientMessageToAll "%s has logged in with the rank: Trucker in Training",pName);
if PlayerScore > 100
SenClientMessageToAll "%s has logged in with the rank: Trucker",pName);
if PlayerScore > 250
SenClientMessageToAll "%s has logged in with the rank: Half-Experienced Trucker",pName);
if PlayerScore > 500
SenClientMessageToAll "%s has logged in with the rank: Full-Experienced Trucker",pName);
if PlayerScore > 1000
SenClientMessageToAll "%s has logged in with the rank: European Trucker",pName);
if PlayerScore > 3000
SenClientMessageToAll "%s has logged in with the rank: World European Trucker",pName);
return 1;
}
public scorechecktimer(playerid)
{
GetPlayerScore(playerid);
if PlayerScore = 1
SendClientMessageToAll "%s has reached the rank: Newbie Trucker",pName);
if PlayerScore = 50
SendClientMessageToAll "%s has reached the rank: Trucker in Training",pName);
if PlayerScore = 100
SendClientMessageToAll "%s has reached the rank: Trucker",pName);
if PlayerScore = 250
SendClientMessageToAll "%s has reached the rank: Half-Experienced Trucker",pName);
if PlayerScore = 500
SendClientMessageToAll "%s has reached the rank: Full-Experienced Trucker",pName);
if PlayerScore = 1000
SendClientMessageToAll "%s has reached the rank: European Trucker",pName);
if PlayerScore = 3000
SendClientMessageToAll "%s has reached the rank: World European Trucker",pName);
return;
}
plz let me know what I need to add more, or change.
Thanks