Certain score to spawn as Specific Team
#1

I have a team named specials, but those players need like 200 score to be the team, I have this at the moment but it's just not working?

pawn Код:
public OnPlayerRequestSpawn(playerid)
{

    if(GetPlayerSkin(playerid) == 121)
    {
        if(GetPlayerScore(playerid) < 250)
        {
            GameTextForPlayer(playerid,"~r~~h~250~b~ Score Needed!",3000,3);
            SendClientMessage(playerid,COLOR_RED,"» You need at least 250 score to become Special Ops!");
            return 0;
        }
    }
    return 1;
}
Reply
#2

Quote:
Originally Posted by Eminem 2ka9
Посмотреть сообщение
I have a team named specials, but those players need like 200 score to be the team, I have this at the moment but it's just not working?

pawn Код:
public OnPlayerRequestSpawn(playerid)
{

    if(GetPlayerSkin(playerid) == 121)
    {
        if(GetPlayerScore(playerid) < 250)
        {
            GameTextForPlayer(playerid,"~r~~h~250~b~ Score Needed!",3000,3);
            SendClientMessage(playerid,COLOR_RED,"» You need at least 250 score to become Special Ops!");
            return 0;
        }
    }
    return 1;
}
you have score 250 there, not 200
Reply
#3

oh nvm I fixed it..
Reply
#4

Use OnPlayerRequestClass instead of OnPlayerRequestSpawn. Also check the example in the wiki page it will help you achieve what you want.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)