How do i do this please help and see
#2

pawn Код:
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

public OnPlayerCommandText(playerid, cmdtext[])
{
  dcmd(Kill,4,cmdtext);
  return 0;
}

dcmd_Kill(playerid,params[])
{
  #pragma unused params
  if(GetPVarInt(playerid, Died) == 1) return SendClientMessage(playerid, Color, "*** You can use /kill once every 150 seconds.");
  SetPlayerHealth(playerid,0.0);
  SetPVarInt(playerid, Died, 1);
  SetTimerEx("Reset",150000, false, "i", playerid);
  return 1;
}

forward Reset(playerid); public Reset(playerid) SetPVarInt(playerid, Died, 0);
Reply


Messages In This Thread
How do i do this please help and see - by jonas4334 - 01.06.2010, 23:20
Re: How do i do this please help and see - by Killa_ - 01.06.2010, 23:28
Re: How do i do this please help and see - by jonas4334 - 02.06.2010, 00:01
Re: How do i do this please help and see - by jonas4334 - 02.06.2010, 00:18
Re: How do i do this please help and see - by Kar - 02.06.2010, 00:32
Re: How do i do this please help and see - by jonas4334 - 02.06.2010, 02:05
Re: How do i do this please help and see - by Kar - 02.06.2010, 02:26
Re: How do i do this please help and see - by jonas4334 - 02.06.2010, 09:47
Re: How do i do this please help and see - by Bomber - 02.06.2010, 09:51
Re: How do i do this please help and see - by vladi866 - 02.06.2010, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)