30.12.2010, 02:22
I need help, i made it so that at the end of onplayerconnect it calls a function called spawn message.
It goes so that if the score is below 50 it says N00b Playername(id) joined the server. and if its above 50 it says Astounded member Playername(id) JOined the server, but when i set my score to 100 it still says to N00b message. And ideas why?
It goes so that if the score is below 50 it says N00b Playername(id) joined the server. and if its above 50 it says Astounded member Playername(id) JOined the server, but when i set my score to 100 it still says to N00b message. And ideas why?
pawn Код:
public SpawnMessage(playerid)
{
new cname[25], connects[75];
GetPlayerName(playerid, cname, sizeof(cname));
if(GetPlayerScore(playerid) <= 49)
{
format(connects, sizeof(connects), "N00b %s(%d) Has Connected To The Server", cname, playerid);
SendClientMessageToAll(COLOR_GREY,connects);
}
else
{
format(connects, sizeof(connects), "Astounded Member %s(%d) Has Connected To The Server", cname, playerid);
SendClientMessageToAll(COLOR_GREY,connects);
}
return 1;
}