23.06.2011, 09:34
Quote:
if(GetPlayerScore(playerid) ==1000) { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a General of the Army", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } else if(GetPlayerScore(playerid) ==500)//level 12 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a General", Pname); SendClientMessageToAll(COLOR_DARKRED,str); return 1; } if(GetPlayerScore(playerid) ==300)//level 11 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Major General", Pname); SendClientMessageToAll(COLOR_DARKRED,str); return 1; } else if(GetPlayerScore(playerid) ==250)//level 9 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Lieutenant General", Pname); SendClientMessageToAll(COLOR_DARKRED,str); return 1; } if(GetPlayerScore(playerid) ==190)//level 8 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Lieutenant Colonel", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } else if(GetPlayerScore(playerid) ==150)//level 7 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Colonel", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } if(GetPlayerScore(playerid) ==110)//level 6 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Major", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } else if(GetPlayerScore(playerid) ==80)//level 5 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Captain", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } if(GetPlayerScore(playerid) ==65)//level 4 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Lieutenant", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } else if(GetPlayerScore(playerid) ==45)//level 3 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Sergeant", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } if(GetPlayerScore(playerid) ==25)// level 2 { new str[128], Pname[24]; GetPlayerName(playerid, Pname, 24); format(str, sizeof(str), "News: %s Has been promoted to a Corporal", Pname); SendClientMessageToAll(COLOR_RED,str); return 1; } |
when i got 25 score
it always sendclientmessae over and over,,like spam
how to make it just once message send, if player get score
help me pls