SA-MP Forums Archive
Command wont continue unless .. - 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: Command wont continue unless .. (/showthread.php?tid=108266)



Command wont continue unless .. - Sal_Kings - 13.11.2009

I need help.

I want to make a command, but it can't move on if you don't have a desert eagle.
It will say "You need a desert eagle first!"

Oh yeah i use strcmp.


Re: Command wont continue unless .. - DeathOnaStick - 13.11.2009

Would be nice if you just would say, what you exacly want.


Re: Command wont continue unless .. - Joe Staff - 13.11.2009

Quote:
Originally Posted by DeathOnaStick
Would be nice if you just would say, what you exacly want.
Seems pretty obvious what he wants, but he should be asking in the Script Request Thread for things like this, but I'll entertain him.

pawn Код:
if(!strcmp(cmdtext[1],"MyCommand",true,9))
{
  if(GetPlayerWeapon(playerid)!=26)return SendClientMessage(playerid,0xFF0000FF,"You need a .50 Cal Desert Eagle handgun to perform this command.");
  //Your Command
  return 1;
}