27.08.2014, 11:09
How can i make in homless team
You must have 300 Score To Choose this team.
You must have 300 Score To Choose this team.
if(GetPlayerScore(playerid) < 300) return SendClientMessage(playerid,-1,"You must have 300 Score To Choose this team."), 0;
new
p_ClassID[MAX_PLAYERS];
public OnPlayerRequestClass(playerid, classid)
{
p_ClassID[playerid] = classid;
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
if(p_ClassID[playerid] == 5) //Assuming that 5th class is so special
{
if(GetPlayerScore(playerid) < 300) return !SendClientMessage(playerid, 0xFF0000FF, "You must have at least 300 score to choose this class."); //! was used to return 0 after SCM function.
}
return 1;
}