SA-MP Forums Archive
[Help]/Help CMD - 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: [Help]/Help CMD (/showthread.php?tid=102818)



[Help]/Help CMD - Danikov - 17.10.2009

I made a /help cmd and heres the script:public OnPlayerCommandText(playerid, cmdtext[])
{

if (strcmp("/kill", cmdtext, true, 5) == 0)
{

if(!strcmp(cmdtext,"/help", true))
{
SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Feauture Will Be Updates ASAP!");
return true;

}
SetPlayerHealth(playerid, 0.0);
SendClientMessage(playerid, COLOR_ORANGE," [!] You Killed Yourself [!]");
return 1;
}
return 0;
}

And it seems that this cmd is Unknown(Recieving the message:[SERVER]:Unknown Command....)Help Please?


Re: [Help]/Help CMD - Danikov - 17.10.2009

And here is a link in Pastebin:
http://pastebin.com/dd0a73b2


Re: [Help]/Help CMD - Correlli - 17.10.2009

You're using one command inside of another, that makes no sense and it's not correct.


Re: [Help]/Help CMD - Danikov - 17.10.2009

OK Ill see whats wrong and edit,if not ill post that i still need help =/


Re: [Help]/Help CMD - Danikov - 17.10.2009

Damn everything is realy mixed o.O ill need help...


Re: [Help]/Help CMD - Correlli - 17.10.2009

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/kill", true) == 0)
  {
    SetPlayerHealth(playerid, 0.0);
    SendClientMessage(playerid, COLOR_ORANGE, "[!] You Killed Yourself [!]");
    return 1;
  }
  if(strcmp(cmdtext, "/help", true) == 0)
  {
    SendClientMessage(playerid, COLOR_SILVER, "[SERVER]:This Server is Currently Under Construction,Help Future Will Be Updates ASAP!");
    return 1;
  }
  return 0;
}



Re: [Help]/Help CMD - Danikov - 17.10.2009

Thank You Don