09.05.2012, 04:30
I add this for sniper class so he can invisible in map'. But he is still visible in map.. ??
I really need help. Please..
pawn Код:
if(listitem == 1)
{
if(GetPlayerScore(playerid) >= 300)
{
SendClientMessage(playerid, COLOR_WHITE, "Server News: You Chose the Sniper as your class.");
ShowPlayerDialog(playerid, 11, DIALOG_STYLE_MSGBOX, "{6EF83C}Sniper Class:", "{F81414}Abilities:\n{FFFFFF}A Locater class, Always invisible on map.\n\n{F81414}Weapons:\n\n{FFFFFF}Sniper Rifle\n{FFFFFF}Mp5\n{FFFFFF}Knife\n{FFFFFF}Shotgun", "OK","");
gPlayerClass[playerid] = SNIPER;
PickedClass[playerid] = 1;
RemovePlayerMapIcon(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 34, 250);
GivePlayerWeapon(playerid, 29, 200);
GivePlayerWeapon(playerid, 25, 250);
}
else
{
SendClientMessage(playerid,COLOR_RED,"You need to be on Rank 3 to get this Class.");
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_LIST, "{6EF83C}Choose A Class:", "Assault Class (Need No Rank) \nSniper Class (Need Rank 3) \nEngineer Class (Need Rank 5) \nJet-Trooper Class (Need Rank 7) \nPilot Class (Need Rank 8) \nSpy Class (Need Rank 9)", "Choose","");
TogglePlayerControllable(playerid, 0);
}
}