[Need]Wanted Level System (Simple)
#1

Hi everyone. I need some help.. I need a admin command about wanted level.I need sth like this;

/wanted6 [playerid] => Sets Player Wanted level 6

/wanted5 [Playerid] => Sets Player Wanted level 5

/wanted4 [Playerid] => Sets Player Wanted level 4

/wanted3 [Playerid] => Sets Player Wanted level 3

/wanted2 [Playerid] => Sets Player Wanted level 2

/wanted1 [Playerid] => Sets Player Wanted level 1

/wanted0 [Playerid] => Sets Player Wanted level 0


Please Help.. And Simple Please.. (Please don't use dcmd or sth like that ) Simple

Just one wanted level cmd is ok.. I can do the others with copy paste

Reply
#2

Are you using any admin system ? I'm sorry... I'm bad in english, but I can help your
Reply
#3

Here u go
Код:
	
if(!strcmp(cmdtext, "/wanted1", true, 8))
{
    if(cmdtext[8] == 0) {
      SendClientMessage(playerid, 0xFF0000FF, "USAGE: /wanted1 [playerid]");
      return 1;
    }
    new mess[128];
    GetPlayerName(playerid, mess, sizeof(mess));
    SetPlayerWantedLevel(strval(cmdtext[9]),1);
    format(mess, sizeof(mess), "[Wanted]: %s has gained wanted level. 1 Star", mess, cmdtext[9]);
    SendClientMessage(playerid,0xFCC00FFF, mess);
    return 1;
}
Its pretty Easy

Thank You
Abhinav
Reply
#4

This command is for all players
Reply
#5

Quote:
Originally Posted by gytisx
This command is for all players
Well make an if that tells who can use the command.
Reply
#6

I know that... if(pInfo[playerid][AdminLvl] >= 1)
{...

In my old GM
Reply
#7

So is that command true And I'm using SeifAdmin.. Thanks ۞●•λвнiиаv•●۞.. I'll try it in 3 hour..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)