10.07.2012, 13:35
I created this one for joining message, when he join it will check his score and it will show message!
pawn Код:
public OnPlayerConnect(playerid)
{
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
if(GetPlayerScore(playerid) <= 1)
{
format(string, sizeof(string), "%s has logged in with the rank: Newbie Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 50)
{
format(string, sizeof(string), "%s has logged in with the rank: Trucker in Training", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 100)
{
format(string, sizeof(string), "%s has logged in with the rank: Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 250)
{
format(string, sizeof(string), "%s has logged in with the rank: Half-Experienced Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 500)
{
format(string, sizeof(string), "%s has logged in with the rank: Full-Experienced Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 100)
{
format(string, sizeof(string), "%s has logged in with the rank: European Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
if(GetPlayerScore(playerid) <= 3000)
{
format(string, sizeof(string), "%s has logged in with the rank: Worl European Trucker", pname);
SendClientMessageToAll(0xAAAAAAAA, string);
return 1;
}
return 1;
}