Score Req. OnPlayerRequestClass.
#8

Quote:
Originally Posted by pds2012
Посмотреть сообщение
Silly me. that should be in OnPlayerRequestSpawn

EDIT

add this on your OnPlayerRequestSpawn callback

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    new team = GetPlayerTeam(playerid);
    if(team == BusDriver && GetPlayerScore(playerid) < 25) return SendClientMessage(playerid, COLOR_RED,"You Need 25 Scores to be Bus Driver.");
    if(team == Police && GetPlayerScore(playerid) < 100) return SendClientMessage(playerid, COLOR_RED,"You Need 100 Scores to be Police Officer.");
    return 1;
}
PS: sorry i did not that you are using SetPlayerTeam. so there you go
Dude, it just give message but player get spawn.
Reply


Messages In This Thread
Score Req. OnPlayerRequestClass. - by Avi Raj - 30.03.2013, 10:51
Re: Score Req. OnPlayerRequestClass. - by Patrick - 30.03.2013, 10:54
Re: Score Req. OnPlayerRequestClass. - by Avi Raj - 30.03.2013, 11:08
Re: Score Req. OnPlayerRequestClass. - by Fernado Samuel - 30.03.2013, 11:13
Re: Score Req. OnPlayerRequestClass. - by Ironboy - 30.03.2013, 11:14
Re: Score Req. OnPlayerRequestClass. - by Patrick - 30.03.2013, 11:17
Re: Score Req. OnPlayerRequestClass. - by Avi Raj - 30.03.2013, 11:21
Re: Score Req. OnPlayerRequestClass. - by Avi Raj - 30.03.2013, 11:26
Re: Score Req. OnPlayerRequestClass. - by Patrick - 30.03.2013, 11:32
Re: Score Req. OnPlayerRequestClass. - by Avi Raj - 30.03.2013, 11:37

Forum Jump:


Users browsing this thread: 3 Guest(s)