02.07.2014, 14:40
pawn Код:
public OnPlayerUpdate(playerid)
{
if(PlayerInfo[playerid][pKills] < 50)
{
TextDrawShowForPlayer(playerid, noob[playerid]);
TextDrawHideForPlayer(playerid, soldier[playerid]);
TextDrawHideForPlayer(playerid, warlord[playerid]);
TextDrawHideForPlayer(playerid, gow[playerid]);
Rank[playerid] = 1;
}
if(PlayerInfo[playerid][pKills] >= 50 && PlayerInfo[playerid][pKills] < 200)
{
TextDrawHideForPlayer(playerid, noob[playerid]);
TextDrawShowForPlayer(playerid, soldier[playerid]);
TextDrawHideForPlayer(playerid, warlord[playerid]);
TextDrawHideForPlayer(playerid, gow[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, "[INFO]{FFFFFF} Congratulations! You have ranked up to Soldier! The Sniper Rifle is now available for free. (/getsr)");
Rank[playerid] = 2;
}
if(PlayerInfo[playerid][pKills] >= 200 && PlayerInfo[playerid][pKills] < 500)
{
TextDrawHideForPlayer(playerid, noob[playerid]);
TextDrawHideForPlayer(playerid, soldier[playerid]);
TextDrawShowForPlayer(playerid, warlord[playerid]);
TextDrawHideForPlayer(playerid, gow[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, "[INFO]{FFFFFF} Congratulations! You have ranked up to War Lord! The RPG is now available for free. (/getrpg)");
Rank[playerid] = 3;
}
if(PlayerInfo[playerid][pKills] >= 500)
{
TextDrawHideForPlayer(playerid, noob[playerid]);
TextDrawHideForPlayer(playerid, soldier[playerid]);
TextDrawHideForPlayer(playerid, warlord[playerid]);
TextDrawShowForPlayer(playerid, gow[playerid]);
SendClientMessage(playerid, COLOR_ORANGE, "[INFO]{FFFFFF} Congratulations! You have ranked up to God Of War. Poison Katana is now available");
SendClientMessage(playerid, COLOR_GREY, "[WEAP-EFFECT]{FFFFFF} Deals enormous amount of damage. /getpk to get a poison katana.");
Rank[playerid] = 4;
}
return 1;
}