26.01.2013, 18:17
I am tired of getting the spam in chat using my script's rank system.
Here is my code:
I've tried OnPlayerUpdate, I have tried return 1. I don't get what the problem is. There are no errors, just it spams you in game.
Thanks for any help.
Here is my code:
pawn Код:
public RankDetection(playerid)
{
if(PlayerInfo[playerid][Xp] == 0)
{
SendClientMessage(playerid, COLOR_GREEN, "You have been promoted to Private II!");
PlayAudioStreamForPlayer(playerid, "https://dl.dropbox.com/u/77376451/rankupmwffa.mp3");
return 0;
}
return 0;
}
Thanks for any help.