SA-MP Forums Archive
I want to make commands that wantedplayers cant use - 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: I want to make commands that wantedplayers cant use (/showthread.php?tid=331577)



I want to make commands that wantedplayers cant use - Anup_Rao - 05.04.2012

I have a CNR server and i want to make a kill cmd that wanted players cant use and some other teleports too just give me a reference and make a kill cmd that wanted guys cant use

THX in advance
rep up if it helps me


Re: I want to make commands that wantedplayers cant use - TzAkS. - 05.04.2012

Код:
if(PlayerInfo[playerid][pWanted] >= 1)
{
// code



Re: I want to make commands that wantedplayers cant use - Ezay - 05.04.2012

Just Make It Somthing Like

I'm Not Sure if SA-MP
Код:
if(GetPlayerWantedLevell > 5/*Whatever Wanted Level Here*/)
Start with Somthing like That,
Код:
And Just Return a Message like "You' Can't /Kill When your Wanted Level is Over 5" if Wanted Level is Greater Than 5 It'll Return That,
Otherwise (Else)

Код:
/* Do Stuff */
Somthing Like That, Anyways.


EDIT:

Or
Create a Variable like the Guy did Above Me


Ezay
\o/


Re: I want to make commands that wantedplayers cant use - Anup_Rao - 05.04.2012

Quote:

if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "you have commited suicide using /kill");
return 1;
}

This is kill cmd now i want to make this non usable by wanted players what all lines should i add and how copy the quote and put the extra line needed and reply please