Need Help With A Command.
#2

you got many ways to create a /kill there are many ways to create a command like :
Dcmd
Zcmd
and normal OnPlayerCommandText
i'll give u an example for dcmd :

Код:
dcmd_kill(playerid,params[])
{
      SetPlayerHealth(playerid,0.0);
      return 1;
}
but u will also need to define dcmd by adding this :
Код:
#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
under your includes (top of the script)

then add under "OnPlayerCommandText" :
Код:
dcmd(kill,4,cmdtext);
Reply


Messages In This Thread
Need Help With A Command. - by Azzy - 26.03.2011, 16:23
Re: Need Help With A Command. - by aircombat - 26.03.2011, 16:35
Re: Need Help With A Command. - by Mr_Scripter - 26.03.2011, 16:38

Forum Jump:


Users browsing this thread: 1 Guest(s)