Help in making wanted level!
#1

Basically, like i made a robstore command. And now,on first rob he will get yellow, on second rob, he will get orange, and so on to red. How can i make it?
Reply
#2

https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Reply
#3

1. Get player's wanted level
2. Put it inside "switch" (refer to wiki)
3. Set player's color in every case of the switch (refer to wiki)

Remember, refer to wiki!
Reply
#4

I did made switch already but it won't switch
Reply
#5

add this in your robstore command

Код:
	SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+2); //adds 2 starts whenever play types robstore command
	switch (GetPlayerWantedLevel(playerid)) //gets player wanted level
	{
		case 2:
		{
			SetPlayerColor(playerid, 0xFFFF00FF); //if wanted level is 2 player color will be set to yellow
		}
		case 4:
		{
			SetPlayerColor(playerid, 0xFF8000FF); //if wanted level is 4 player color will be set to orange
		}
		case 6:
		{
			SetPlayerColor(playerid, 0xFF0000FF); //if wanted level is 6 player color will be set to red
		}
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)