Help with class messages.
#5

this how you would do it
pawn Код:
public OnPlayerSpawn(playerid)
{
   new classid = GetPlayerClass(playerid);
   AntiDeAMX();  
   SetPlayerInterior(playerid,0);    
   TogglePlayerClock(playerid,0);
   
   if(classid == 1)    
  {
  SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");
  }
   
  else if (classid == 2)
  {  
  SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");
  }  
  else if(classid == 3)    
  {
   SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");
   }
   else if (classid == 4)  
   {
   SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");
   }
   else if(classid == 5)    
   {
   SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");    
   }
   else if (classid == 6)    
   {
   SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");    
   }
   else if(classid == 7)    
   {
   SendClientMessage(playerid,COLOR_LIGHTBLUE,"Make sure everyone obeys all traffic laws!");  
   }
   else if (classid == 8)    
   {
   SendClientMessage(playerid,COLOR_LIGHTBLUE,"Make sure everyone obeys all traffic laws!");    
   }
   else if(classid == 9)    
   {
   SendClientMessage(playerid,COLOR_LIGHTBLUE,"Make sure everyone obeys all traffic laws!");    
   }
   else if (classid == 10)    
   {
   SendClientMessage(playerid,COLOR_RED,"Help people who are in /distress!");    
   }
   else if(classid == 11)    
   {
   SendClientMessage(playerid,COLOR_RED,"Help people who are in /distress!");    
   }
   else if (classid == 12)    
   {
   SendClientMessage(playerid,COLOR_RED,"Help people who are in /distress!");    
   }
   else if(classid == 13)    
   {
   SendClientMessage(playerid,COLOR_GREEN,"Dispatch trucks and keep everyone om schedule!");    
   }
   else if (classid == 14)    
   {
   SendClientMessage(playerid,COLOR_GREEN,"Dispatch trucks and keep everyone om schedule!");    
   }
   else if(classid == 15)    
   {
   SendClientMessage(playerid,COLOR_YELLOW,"Type /work to being a mission!");    
   }
   return 1;
}
Reply


Messages In This Thread
Help with class messages. - by Rokzlive - 07.12.2010, 00:24
Re: Help with class messages. - by TheXIII - 07.12.2010, 00:26
Re: Help with class messages. - by fangoth1 - 07.12.2010, 00:27
Re: Help with class messages. - by Rokzlive - 07.12.2010, 00:39
Re: Help with class messages. - by fangoth1 - 07.12.2010, 00:45
Re: Help with class messages. - by XePloiT - 07.12.2010, 00:54
Re: Help with class messages. - by Rokzlive - 07.12.2010, 01:04
Re: Help with class messages. - by willsuckformoney - 07.12.2010, 01:06
Re: Help with class messages. - by Rokzlive - 07.12.2010, 01:10
Re: Help with class messages. - by XePloiT - 07.12.2010, 01:10

Forum Jump:


Users browsing this thread: 3 Guest(s)