25.11.2012, 02:22
Код:
public OnPlayerRequestSpawn(playerid)
{
if (gTeam[playerid] == LSPD1 && PlayerData[playerid][pScore] < 500 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 500 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
if (gTeam[playerid] == LSPD2 && PlayerData[playerid][pScore] < 500 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 500 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
if (gTeam[playerid] == SWAT && PlayerData[playerid][pScore] < 1000 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 1000 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
if (gTeam[playerid] == FBI && PlayerData[playerid][pScore] < 1500 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 1500 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
if (gTeam[playerid] == CIA && PlayerData[playerid][pScore] < 2000 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 2000 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
if (gTeam[playerid] == ARMY && PlayerData[playerid][pScore] < 2000 && PlayerData[playerid][pPlayTime] < 10) {
SendClientMessage(playerid, COLOR_RED,"Your score has to be 2000 or above and your playtime has to be 10 or above to use this team.");
return 0;
}
return 1;
}

