help, i need help
#1

Quote:

if(GetPlayerScore(playerid) >= 500) //General
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: General of The Army]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 100% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 100);
}
if(GetPlayerScore(playerid) >= 45) //Sergeant
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Sergeant]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 10% armour");
SendClientMessage(playerid, COLOR_GOLD, "-Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun and Sniper Rifle");
SetPlayerArmour(playerid, 10);
}
if(GetPlayerScore(playerid) >= 65) //Lieutenant
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Lieutenant]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 20% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SetPlayerArmour(playerid, 20);
}
if(GetPlayerScore(playerid) >= 80) //Captain
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Captain]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 30% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 30);
}
if(GetPlayerScore(playerid) >= 110) //Major
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Major]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 40% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 40);
}
if(GetPlayerScore(playerid) >= 150) //Colonel
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Colonel]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 50% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 50);
}
if(GetPlayerScore(playerid) >= 190) //LieutenantColonel
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: LieutenantColonel]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 60% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 60);
}
if(GetPlayerScore(playerid) >= 250) //LieutenantGeneral
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: LieutenantGeneral]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 70% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 70);
}
if(GetPlayerScore(playerid) >= 300) //Major General
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: Major General]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 80% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 80);
}
if(GetPlayerScore(playerid) >= 350) //General
{
SendClientMessage(playerid, COLOR_GOLD, "Reinforcement : [Rank: General]");
SendClientMessage(playerid, COLOR_GOLD, "-You received 90% armour");
SendClientMessage(playerid, COLOR_GOLD, "-You received Drive License for Tank");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Seasparrow");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hydra");
SendClientMessage(playerid, COLOR_GOLD, "-You received Fly License for Hunter");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Shotgun, Sniper Rifle, Mac-10 and RPG");
SendClientMessage(playerid, COLOR_GOLD, "-Permission to buy Combat Tec-9, Sawn-off Shotgun, Desert Eagle and RPG");
SetPlayerArmour(playerid, 90);
}
return 1;

}

i got a problem,,

how to make if player's score >= 65, sergeant reinforcement will not be showed,

when my score is 65, i got sergeant message,.....i want sergeant message will not be showed
Reply
#2

add an else statement next to the If statements

post results
Reply
#3

oh thank u
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)