SA-MP Forums Archive
Need Example - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need Example (/showthread.php?tid=197143)



Need Example - marinov - 08.12.2010

I want to learn how to make it require one kill before using a command, please give me an example so I can try to do my own


Re: Need Example - Hal - 08.12.2010

pawn Код:
command(stats,playerid, params[])
{
     #pragma unused params
     if(Kills[playerid] != 0)
     {
              //DO CMD HERE
      }
      else
      {
             SendClientMessage(playerid, WHITE, "You Do Not Have Any Kills!");
      }
      return 1;
}
Read up on how to use/make variables.


Re: Need Example - marinov - 08.12.2010

that's perfect thxs