Spawn Titles
#1

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?

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;
}
Reply


Messages In This Thread
Spawn Titles - by Rokzlive - 30.12.2010, 02:22
Re: Spawn Titles - by Rokzlive - 30.12.2010, 02:25
Re: Spawn Titles - by _rAped - 30.12.2010, 02:30
Re: Spawn Titles - by Rokzlive - 30.12.2010, 02:42
Re: Spawn Titles - by _rAped - 30.12.2010, 02:46
Re: Spawn Titles - by Rokzlive - 30.12.2010, 02:48
Re: Spawn Titles - by _rAped - 30.12.2010, 02:50

Forum Jump:


Users browsing this thread: 3 Guest(s)