Guest
Public paste!

asd

By: a guest | Mar 19th, 2010 | Syntax: None | Size: 0.47 KB | Hits: 69 | Expires: Never
Copy text to clipboard
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2. {
  3. if (strcmp("/suicidebomb", cmdtext, true, 10) == 0 || strcmp("/sb", cmdtext, true, 10) == 0)
  4.         {
  5.             if (gTeam[playerid] == 0)
  6.             {
  7.             GetPlayerPos(playerid, X, Y, Z);
  8.                 SetPlayerHealth(playerid, 0);
  9.                 SetPlayerArmour(playerid, 0);
  10.                 CreateExplosion( X, Y, Z, 7, 200);
  11.             }
  12.  
  13.             else
  14.             {
  15.             SendClientMessage(playerid, COLOR_SERVER, "BRAIN: Don't blow yourself up!!");
  16.             }
  17.                 return 1;
  18.         }
  19. return 0;
  20. }