if(classofballas[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToBallas(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Ballas"); } else if(classofgrove[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToGrove(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Grove Street."); } else if(classofvagos[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToVagos(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Vagos."); } else if(classofaztecaz[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToAZTECAZ(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Aztecas."); } else if(classoftriads[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToTriads(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Triads."); } else if(classoflspd[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToLSPD(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "You joined the Police."); } else if(classofstaff[playerid] == 1) { format(string, sizeof(string), "%s has been spawned!", playername); SendToStaff(COLOR_YELLOW, string); SendClientMessage(playerid, COLOR_YELLOW, "Welcome, Admin!"); } return 1; } |
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1:
{
//If their Class ID is 1, then they're in Grove.
classofgrove[playerid] = 1;
}
case 2:
{
//If their Class ID is 2, then they're in the Ballas.
classofballas[playerid] = 1;
}
//Continue this..
}
return 1;
}