25.12.2010, 14:17
Hey all,i need a "speed" tip.
I need to use the case function to switch wanted level fast and showing messages.
I've this:
How i can do in a fast way with case?
Ex: case 1 "player blabla wanted level 1)
case 2 "player bla bla wanted level 2
Etc..
Thanks.
I need to use the case function to switch wanted level fast and showing messages.
I've this:
pawn Код:
if(GetPlayerWantedLevel(playerid) > 1)
{
new string [100];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "%s has now wanted level 1.", pName);
SendClientMessageToAll(COLOR_ORANGE, string);
new str[100];
format(str,sizeof str,"0,4%s has now wanted level 1.", pName);
IRC_GroupSay(gGroupID, IRC_CHANNEL, str);
}
Ex: case 1 "player blabla wanted level 1)
case 2 "player bla bla wanted level 2
Etc..
Thanks.