31.01.2012, 13:30
Helloww, I made a dialog for a class. If a player not have enough score it says: You must have atleast rank 2 to be a Sniper! Than the dialog must be show again and that isn't.
pawn Код:
case DIALOG_SNIPER:
{
if( response )
{
if(GetPlayerScore(playerid) <= 5) return echo(playerid,COLOR_DARKRED,"You must have atleast Rank 2 to be a Sniper! ");
gPlayerClass[playerid] = SNIPER_CLASS;
GivePlayerWeapon(playerid, 4, 1);//knife
GivePlayerWeapon(playerid, 22, 15);//9mm
GivePlayerWeapon(playerid, 25, 25);//shotgun
GivePlayerWeapon(playerid, 44, 1);//night vision goggles
GivePlayerWeapon(playerid, 41, 43);//spraycan
SetPlayerHealth(playerid, 75);
return 1;
}
else return ShowPlayerDialog(playerid, DIALOG_CLASS, DIALOG_STYLE_LIST, "Select your Class 3/4", "{00CC33}Assault \n{00CC33}Sniper \n{00CC33}Medic \n{00CC33}Flame Thrower \n{00CC33}Pilot \n{00CC33}Engineer \n{00CC33}Spy \n{00CC33}Scout ", "Continue", "Back");
}