Admin CMDS !! help please
#6

You'll have to write them in your script.

For the people who don't know how OnPlayerCommandText works, here it is:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
'cmdtext' is the string that contain whatever the player typed.

Now what actually everybody is calling 'making a command' is this (An example of the /kill command):

pawn Код:
if(!strcmp(cmdtext,"/kill",true))
{
  SetPlayerHealth(playerid,0);
  return 1;
}
What you're actually doing is checking if the value of cmdtext is equal to '/kill'.

So back on topic: You must put em in yourself.
Reply


Messages In This Thread
Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 10:14
Re: Admin CMDS !! help please - by Lorenc_ - 28.07.2010, 10:48
Re: Admin CMDS !! help please - by Shubham - 28.07.2010, 10:54
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 10:57
Re: Admin CMDS !! help please - by Cameltoe - 28.07.2010, 11:01
Re: Admin CMDS !! help please - by Hiddos - 28.07.2010, 11:03
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:06
Re: Admin CMDS !! help please - by Hiddos - 28.07.2010, 11:09
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:12
Re: Admin CMDS !! help please - by a!DaN)_)-) - 28.07.2010, 11:16

Forum Jump:


Users browsing this thread: 1 Guest(s)