Help me making this command - 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)
+--- Thread: Help me making this command (
/showthread.php?tid=329607)
Help me making this command -
Anup_Rao - 29.03.2012
Well i need help like i have made a /kill command
but i want to make the command so that wanted people cant use it
if a wanted guy types /kill it should say u cant use this command bcz ur wanted
so if anyone can help me with this please help me
thank you in advance
Re: Help me making this command -
Shabi RoxX - 29.03.2012
Here you have:
pawn Код:
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
if(GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid,-1, "You can't use this command because you're wanted" );
else
SetPlayerHealth(playerid, 0.0);
return 1;
}
Re: Help me making this command -
emokidx - 29.03.2012
^ faster
Re: Help me making this command -
Anup_Rao - 29.03.2012
Quote:
Originally Posted by Shabi RoxX
Here you have:
pawn Код:
if (strcmp("/kill", cmdtext, true, 5) == 0) { if(GetPlayerWantedLevel(playerid) > 0) return SendClientMessage(playerid,-1, "You can't use this command because you're wanted" ); else SetPlayerHealth(playerid, 0.0); return 1; }
|
thx for helpin me out
Re: Help me making this command -
BigD - 29.03.2012
Also if you wanted to like if you do /wanted then SetPlayerWantedLevel(playerid) == 1; or whatever.