Thread: Help
View Single Post
Old 02/09/2014, 10:04 PM   #10
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,571
Reputation: 187
Default Re: Help

pawn Code:
public OnGameModeInit()
{
    AddPlayerClass(284, 2303.9497, 2439.0103, 3.2734, 19.1234, 3, 1, 22, 50, 29, 500); // Police
    AddPlayerClass(285, 2303.9497, 2439.0103, 3.2734, 19.1234, 3, 1, 22, 50, 29, 500); // Police
   
    AddPlayerClass(299, 2193.7366, 2007.4865, 12.2894, 358.2378, 0, 0, 0, 0, 0, 0); // Civilian
    AddPlayerClass(269, 2193.7366, 2007.4865, 12.2894, 358.2378, 0, 0, 0, 0, 0, 0); // Civilian
    return 1;
}

SetPlayerTeamFromClass(playerid, classid)
{
    switch (classid)
    {
        case 0, 1: gTeam[playerid] = POLICE;
        case 2, 3: gTeam[playerid] = CIVILIAN;
    }
}
Stinged is offline   Reply With Quote