PDA

View Full Version : I want to make commands that wantedplayers cant use


Anup_Rao
05/04/2012, 10:19 AM
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

TzAkS.
05/04/2012, 10:23 AM
if(PlayerInfo[playerid][pWanted] >= 1)
{
// code

Ezay
05/04/2012, 10:27 AM
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/

Anup_Rao
05/04/2012, 12:33 PM
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