[DUV]Simples Erros
#7

Код:
public OnPlayerRequestClass(playerid, classid)
{
   gPlayerClass[playerid] = classid;   
   if(classid == 0 || 1 || 2)
   { //LVPD   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~b~LVPD",2000,3);    
        SetPlayerColor(playerid, COR_LVPD);
    }
    else if(classid ==  3 || 4 || 5)
    { //FBI   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~b~FBI",2000,3);    
        SetPlayerColor(playerid, COR_FBI);
    }    
    else if(classid == 6 || 7 || 8)
    { //Mбfia Corelli  
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~p~Mafia Corelli",2000,3);    
        SetPlayerColor(playerid, COR_CORELLI);
    }    
    else if(classid ==  9 || 10 || 11)
    { //Mбfia Yamagury   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~p~Mafia Yamagury",2000,3);    
        SetPlayerColor(playerid, COR_YAMAGURY);
    }    
    else if(classid ==  12 || 13)
    { //Mбfia do Bozo  
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~p~Mafia do Bozo",2000,3);    
        SetPlayerColor(playerid, COR_BOZO);
    }    
    else if(classid ==  14 || 15 || 16)
    { //Mбfia Champeones   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~p~Mafia Champeones",2000,3);    
        SetPlayerColor(playerid, COR_CHAMPEONES);
    }    
    else if(classid ==  18 || 19)
    { //Bloods   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~r~Bloods",2000,3);    
        SetPlayerColor(playerid, COR_BLOODS);
    }    
    else if(classid == 20 || 21)
    { //Crips   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~b~Crips",2000,3);    
        SetPlayerColor(playerid, COR_CRIPS);
    }    
    else if(classid ==  22 || 23 ||24)
    { //Florencia   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~g~Florencia",2000,3);    
        SetPlayerColor(playerid, COR_FLORENCIA);
    }    
    else if(classid == 25 || 26 || 27)
    { //Golf Club   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~b~Golf Club",2000,3);    
        SetPlayerColor(playerid, COR_GOLF);
    }    
    else if(classid ==  28 || 29 || 30)
    { //Penelope's Crew   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~p~Penelopes Crew",2000,3);    
        SetPlayerColor(playerid, COR_PENELOPE);
    }    
    else if(classid ==  100 || 247 || 248)
    { //Infernal Bikers   
        SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
        SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
        GameTextForPlayer(playerid,"~r~Infernal Bikers",2000,3);    
        SetPlayerColor(playerid, COR_BIKERS);
    }
    return 1;
}
Nгo testei. Mas acho que й algo do tipo. Nem se quer fui no pawno fazer, fiz isso aqui mesmo. Testa ae.
Reply


Messages In This Thread
[DUV]Simples Erros - by PsyShotter - 04.01.2011, 15:17
Re: [DUV]Simples Erros - by Ricop522 - 04.01.2011, 15:29
Re: [DUV]Simples Erros - by faeldk - 04.01.2011, 15:30
Re: [DUV]Simples Erros - by PsyShotter - 04.01.2011, 15:32
Re: [DUV]Simples Erros - by gabriel_ - 04.01.2011, 16:24
Re: [DUV]Simples Erros - by PsyShotter - 04.01.2011, 21:09
Re: [DUV]Simples Erros - by ManoLexuS - 04.01.2011, 21:54
Re: [DUV]Simples Erros - by Macintosh - 04.01.2011, 21:59
Respuesta: [DUV]Simples Erros - by zSuYaNw - 04.01.2011, 22:00
Re: [DUV]Simples Erros - by PsyShotter - 04.01.2011, 22:36

Forum Jump:


Users browsing this thread: 1 Guest(s)