alot of errors. help and REP++
#4

pawn Код:
forward SendPlayerFormattedText(playerid, const str[], define);
forward SendAllFormattedText(playerid, const str[], define);

public SendPlayerFormattedText(playerid, const str[], define)
{
    new tmpbuf[256];
    format(tmpbuf, sizeof(tmpbuf), str, define);
    SendClientMessage(playerid, 0xFF004040, tmpbuf);
}

public SendAllFormattedText(playerid, const str[], define)
{
    new tmpbuf[256];
    format(tmpbuf, sizeof(tmpbuf), str, define);
    SendClientMessageToAll(0xFFFF00AA, tmpbuf);
}

public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
   case 0,1,2,3,4:
{
   SetPlayerTeam(playerid, TEAM_AS);
   SetPlayerColor(playerid, COLOR_CYAN);
   SetPlayerArmour(playerid, 100);
}
  case 5,6,7:
{
   SetPlayerTeam(playerid, TEAM_MEDIC);
   SetPlayerColor(playerid, COLOR_INDIGO);
   SetPlayerArmour(playerid, 100);
}
  case 8,9:
{
   SetPlayerTeam(playerid, TEAM_BOXER);
   SetPlayerColor(playerid, COLOR_ROYALBLUE);
   SetPlayerArmour(playerid, 100);
}
  case 10,11,12,13,14,15,16,17,18,19:
{
   SetPlayerTeam(playerid, TEAM_HOBOS);
   SetPlayerColor(playerid, COLOR_ORANGE);
   SetPlayerArmour(playerid, 100);
}
  case 20,21,22,23,24,25,26,27,28,29,30,31:
{
   SetPlayerTeam(playerid, TEAM_RICHFAGS);
   SetPlayerColor(playerid, COLOR_DARKYELLOW);
   SetPlayerArmour(playerid, 100);
}
  case 32,33,34,35,36,37,38,39,40,41,42,43,44,45:
{
   SetPlayerTeam(playerid, TEAM_PUBLIC);
   SetPlayerColor(playerid, COLOR_BROWN);
   SetPlayerArmour(playerid, 100);
}
  case 46,47,48,49,50,51:
{
   SetPlayerTeam(playerid, TEAM_GIRLS);
   SetPlayerColor(playerid, COLOR_PINK);
   SetPlayerArmour(playerid, 100);
}
  case 52,53,54:
{
   SetPlayerTeam(playerid, TEAM_BALLAS);
   SetPlayerColor(playerid, COLOR_PURPLE);
   SetPlayerArmour(playerid, 100);
}
  case 55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80:
{
   SetPlayerTeam(playerid, TEAM_TERRORISTS);
   SetPlayerColor(playerid, COLOR_TAN);
   SetPlayerArmour(playerid, 100);
}
}
return 1;
}
Dont know if your FormattedText will work.
Reply


Messages In This Thread
alot of errors. help and REP++ - by KappaCro - 31.07.2012, 04:51
Re: alot of errors. help and REP++ - by [MM]RoXoR[FS] - 31.07.2012, 04:52
Re: alot of errors. help and REP++ - by KappaCro - 31.07.2012, 04:57
Re: alot of errors. help and REP++ - by [MM]RoXoR[FS] - 31.07.2012, 05:20
Re: alot of errors. help and REP++ - by Majed - 31.07.2012, 05:25
Re: alot of errors. help and REP++ - by KappaCro - 31.07.2012, 05:26
Re: alot of errors. help and REP++ - by KappaCro - 31.07.2012, 05:28
Re: alot of errors. help and REP++ - by Majed - 31.07.2012, 05:28
Re: alot of errors. help and REP++ - by [BK]TrollKing - 31.07.2012, 06:16
Re: alot of errors. help and REP++ - by KappaCro - 31.07.2012, 06:34

Forum Jump:


Users browsing this thread: 1 Guest(s)