27.08.2011, 21:03
Probably a easy solve, but this dosnt give the weapons when i want it.
It will when i remove the
Heres The whole code for this.
It will when i remove the
pawn Code:
if(PlayerInfo[playerid][pSClass] == 1)
{
return 1;
}
else if(PlayerInfo[playerid][pSClass] == 0)
{
ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"Class Selection","Assualt\nSniper\nSpy\nPilot\n","Select"," ");
return 1;
}
pawn Code:
public OnPlayerSpawn(playerid)
{
if(PlayerInfo[playerid][pSClass] == 1)
{
return 1;
}
else if(PlayerInfo[playerid][pSClass] == 0)
{
ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"Class Selection","Assualt\nSniper\nSpy\nPilot\n","Select"," ");
return 1;
}
if(PlayerInfo[playerid][pClass] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Have The Assualt Class!");
SendClientMessage(playerid,COLOR_RED,"Note* You Can Change Your Class By Type /ClassSelection");
SendClientMessage(playerid,COLOR_LIMEGREEN,"Kill Anyone That Is NOT On Your Team!");
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,25,250);
}
else if(PlayerInfo[playerid][pClass] == 2)
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Have Selected Sniper Class!");
SendClientMessage(playerid,COLOR_RED,"Note* You Can Change Your Class By Type /ClassSelection");
SendClientMessage(playerid,COLOR_LIMEGREEN,"Kill Anyone That Is NOT On Your Team!");
GivePlayerWeapon(playerid,34,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,25,250);
}
else if(PlayerInfo[playerid][pClass] == 3)
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Have Selected Spy Class!");
SendClientMessage(playerid,COLOR_RED,"Note* You Can Change Your Class By Type /ClassSelection");
SendClientMessage(playerid,COLOR_LIMEGREEN,"Kill Anyone That Is NOT On Your Team!");
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,23,250);
}
else if(PlayerInfo[playerid][pClass] == 1)
{
SendClientMessage(playerid,COLOR_YELLOW,"Your Have Selected Pilot Class!");
SendClientMessage(playerid,COLOR_RED,"Note* You Can Change Your Class By Type /ClassSelection");
SendClientMessage(playerid,COLOR_LIMEGREEN,"Kill Anyone That Is NOT On Your Team!");
GivePlayerWeapon(playerid,31,500);
GivePlayerWeapon(playerid,29,500);
GivePlayerWeapon(playerid,22,250);
}
return 1;
}