DM Command
#7

Indent and index your arrays. :P
pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
      // My Commands Example
   if(strcmp(cmdtext, "/kill",true) == 0)
   {
      if(iamatdm[playerid] == 0)
      {
         SetPlayerHealth(playerid, 0);
         return 1;
      }
      else
      {
         SendClientMessage(playerid,0xFF0000FF,"You Cant Use Commands In Dm Area!!");
         return 1;
      }
   }
   if(strcmp("/dmexit", cmdtext, true) == 0)
   {
      if(iamatdm == 0)
      {
         SetPlayerPos(playerid, -1079.99, 1061.58, 1343.04);
         return 1;
      }
      return 1;
   }
   return 0;
}
Reply


Messages In This Thread
DM Command - by GeKo - 19.04.2009, 16:24
Re: DM Command - by Rks25 - 19.04.2009, 16:27
Re: DM Command - by GeKo - 19.04.2009, 16:33
Re: DM Command - by Rks25 - 19.04.2009, 16:56
Re: DM Command - by GeKo - 19.04.2009, 17:23
Re: DM Command - by Rks25 - 19.04.2009, 17:44
Re: DM Command - by Backwardsman97 - 19.04.2009, 17:45
Re: DM Command - by GeKo - 19.04.2009, 18:00
Re: DM Command - by Rks25 - 19.04.2009, 18:00
Re: DM Command - by Backwardsman97 - 19.04.2009, 18:54

Forum Jump:


Users browsing this thread: 1 Guest(s)