Newbie question :P
#1

Probably a easy solve, but this dosnt give the weapons when i want it.

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;
    }
Heres The whole code for this.


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;
}
Reply


Messages In This Thread
Newbie question :P - by Shockey HD - 27.08.2011, 21:03
Re: Newbie question :P - by dice7 - 27.08.2011, 21:22
Re: Newbie question :P - by Shockey HD - 27.08.2011, 21:25
Re: Newbie question :P - by Amel_PAtomAXx - 27.08.2011, 21:27
Re: Newbie question :P - by dice7 - 27.08.2011, 21:27
Re: Newbie question :P - by Kush - 27.08.2011, 21:29
Re: Newbie question :P - by Shockey HD - 27.08.2011, 21:39

Forum Jump:


Users browsing this thread: 1 Guest(s)