Help with score and client message - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with score and client message (
/showthread.php?tid=580720)
Help with score and client message -
Sc0pion - 07.07.2015
Fixed!
Re : Help with score and client message -
simo0000 - 07.07.2015
something like that .
pawn Код:
if(GetPlayerScore(playerid) == 2500)
{
SendClientMessage(playerid,COLOR_YELLOW, "[ Congratulation, you have been promoted to Regular Player 1 ]");
SetPlayerScore(GetPlayerScore(playerid)+=2);
}
if(GetPlayerScore(playerid) == 5000)
{
SendClientMessage(playerid,COLOR_YELLOW, "[ Congratulation, you have been promoted to Regular Player 2]");
SetPlayerScore(GetPlayerScore(playerid)+=2);
}
Re: Help with score and client message -
Sc0pion - 07.07.2015
Fixed!
Re : Help with score and client message -
simo0000 - 07.07.2015
put it under OnPlayerConnect it will tell the player that he reachs the next rank and add +2 to his score to avoid giving the player same message all times that he connect to the server but the score must be saved
sorry fo my bad english
Re: Re : Help with score and client message -
Sc0pion - 07.07.2015
Fixed!