Newbie question :P
#6

PHP Code:
public OnPlayerSpawn(playerid)
{
    if(
PlayerInfo[playerid][pSClass] == 0)
    {
        
ShowPlayerDialog(playerid,DIALOG_CLASS,DIALOG_STYLE_LIST,"Class Selection","Assualt\nSniper\nSpy\nPilot\n","Select"," ");
        return 
1;
    }
    else if(
PlayerInfo[playerid][pSClass] == 1)
    {
        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)