Command problem?
#7

Killerkid, like this it would be better.

pawn Код:
dcmd_fightstyle(playerid,params[])
{
 if(!params[0]) return SendClientMessage(playerid, /*red*/ 0xFF0000FF, "Example: /fightstyle [4, 5, 6, 7]");
 
 new var = strval(params);
 
 switch(var)
 {
  case 4, 5, 6, 7:
  {
   for(new i = 0; i < MAX_PLAYERS; i++)
   {
    if(IsPlayerConnected(i))
    {
     SetPlayerFightingStyle(i, var);
    }
   }
  }
 
  default:
  {
   SendClientMessage(playerid, 0xFF0000FF, "Invalid fight style.");
   break;
  }
 }

 return 1;
}
Reply


Messages In This Thread
Command problem? - by [mad]MLK - 04.09.2009, 17:06
Re: Command problem? - by V1ceC1ty - 04.09.2009, 17:08
Re: Command problem? - by dugi - 04.09.2009, 17:09
Re: Command problem? - by [mad]MLK - 04.09.2009, 17:10
Re: Command problem? - by Balon - 04.09.2009, 17:50
Re: Command problem? - by Killerkid - 04.09.2009, 17:51
Re: Command problem? - by Balon - 04.09.2009, 17:58

Forum Jump:


Users browsing this thread: 1 Guest(s)