25.12.2010, 14:27
Alright it seems more like i'm not able to really get the point of what you want lol. You're wanting to have a global message disaplayed whenever the player gains +1 wanted level?
just an example, ^ but should work.
Код:
if(GetPlayerWantedLevel(playerid) != 0) { new wantedlevel; new string [100]; new pName[MAX_PLAYER_NAME]; if(GetPlayerWantedLevel(playerid) == 1) { wantedlevel = 1; } if(GetPlayerWantedLevel(playerid) == 2) { wantedlevel = 2; } if(GetPlayerWantedLevel(playerid) == 3) { wantedlevel = 3; } if(GetPlayerWantedLevel(playerid) == 4) { wantedlevel = 4; } if(GetPlayerWantedLevel(playerid) == 5) { wantedlevel = 5; } if(GetPlayerWantedLevel(playerid) == 6) { wantedlevel = 6; } GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s has now wanted level %d.", pName, wantedlevel); SendClientMessageToAll(COLOR_ORANGE, string); new str[100]; format(str,sizeof str,"0,4%s has now wanted level %d.", pName, wantedlevel); IRC_GroupSay(gGroupID, IRC_CHANNEL, str); }