It worked but Now I have 3 warnings.
This is the script.
Code:
// Los Santos TDM made by Waza75 version 1.0 Enjoy :)
#include <a_samp>
#define TEAM_HOOKER 1
#define TEAM_BUM 2
#define TEAM_HOOKER_COLOR 0xAABB0099
#define TEAM_BUM_COLOR 0x9900BBAA
new gTeam[MAX_PLAYERS];
main ()
{
print("Los Santos TDM Made by Waza75 owner: YOURNAMEHERE");
}
SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 0, 1, 2, 3, 4)
{
gTeam[playerid] = TEAM_HOOKER;
}
if (classid == 5, 6, 7, 8)
{
gTeam[playerid] = TEAM_BUM;
}
}
SetPlayerToTeamColor(playerid)
{
if(gTeam[playerid] == TEAM_HOOKER)
{
SetPlayerColor(playerid, TEAM_HOOKER_COLOR);
}
else(gTeam[playerid] == TEAM_BUM)
{
SetPlayerColor(playerid, TEAM_BUM_COLOR);
}
}
public OnGameModeInit()
{
//TEAM HOOKER
AddPlayerClass(63, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); //CLASSID 0
AddPlayerClass(64, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); //CLASSID 1
AddPlayerClass(75, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); // ETC
AddPlayerClass(78, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50);
//TEAM BUM
AddPlayerClass(77, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); //CLASSID 0
AddPlayerClass(78, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); //CLASSID 1
AddPlayerClass(79, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50); // ETC
AddPlayerClass(135, 1958.3783, 1343.1572, 15.3746, 269.1425, 5, 0, 22, 100, 32, 50);
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);
}