Dъvida.
#1

Bom eu estou com um problema....
criei algumas orgs defini as classs tal, mais quando vу no OnPlayerSpawn para, definir as armas ele nгo vai fico puto da vida com isso..
pawn Код:
public OnGameModeInit()
{
    SetGameModeText("Gang War.");
    AddPlayerClass(105,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0); //grove
    AddPlayerClass(106,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
    AddPlayerClass(107,2478.2656,-1633.4364,13.4048,183.2906,0,0,0,0,0,0);//grove
    AddPlayerClass(102,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
    AddPlayerClass(103,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
    AddPlayerClass(104,1999.7797,-1131.8314,25.3345,157.7532,0,0,0,0,0,0);//ballas
   
    return 1;
}
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(classid ==0)
    {
        Gang[playerid] = grove;
    }
    else if(classid ==1)
    {
        Gang[playerid] = grove;
    }
    else if(classid ==2)
    {
        Gang[playerid] = grove;

    }
    else if(classid ==3)
    {
        Gang[playerid] = ballas;
    }
    else if(classid ==4)
    {
        Gang[playerid] = ballas;
    }
    else if(classid ==5)
    {
        Gang[playerid] = ballas;
    }
    SetPlayerPos(playerid,1984.4445,157.9501,55.9384);
    SetPlayerCameraPos(playerid,1984.4445,160.9501,55.9384);
    SetPlayerCameraLookAt(playerid,1984.4445,157.9501,55.9384);
    SetPlayerFacingAngle(playerid,0.0);
    return 1;
}
preciso muito da ajuda de vocкs quando coloco alguma funзгo pra tal org no OnPlayerSpawn nгo acontece nada apos o spawn.
Reply
#2

PHP код:
//coloque isto na OnPlayerSpawn
if(Gang[playerid] == ballas)
    {
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid30450);
        
GivePlayerWeapon(playerid32400);
        
GivePlayerWeapon(playerid2250);
        
GivePlayerWeapon(playerid141);
        
GivePlayerWeapon(playerid165);
        
GivePlayerWeapon(playerid2690);
    }
    else if(
Gang[playerid] == grove)
    {
        
ResetPlayerWeapons(playerid);
        
GivePlayerWeapon(playerid31450);
        
GivePlayerWeapon(playerid28400);
        
GivePlayerWeapon(playerid2450);
        
GivePlayerWeapon(playerid51);
        
GivePlayerWeapon(playerid165);
        
GivePlayerWeapon(playerid2690);
    } 
Reply
#3

LOL agora deu por que nгo tava dando? '-'
Reply
#4

nao sei. vc nao postou sua OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)