[AJUDA] Mapa Bugando
#1

Iae galera, to aprendendo a usar o pawno, e vi uns tutoriais aqui, acabei fazendo meu GM, e preciso mto da ajuda de vocкs, quando eu dou spawn o mapa buga todo, eu ainda nem fiz o mapa no MTA, eu coloquei assim no pawno:
pawn Код:
public OnGameModeInit()
{
    // Don't use these lines if it's a filterscript
    SetGameModeText("[GNF]Mod v1.0");
    ShowPlayerMarkers(0);
    ShowNameTags(0);
    EnableStuntBonusForAll(0);

    // Player Class's
    AddPlayerClass(29,2066.2820,-991.9121,48.7995,339.0341,24,999,25,9999,30,9999);
    AddPlayerClass(28,2203.3721,-993.2136,63.9297,158.2657,24,999,25,9999,30,9999);
    AddPlayerClass(285,2219.4712,-1170.2731,25.7266,358.1601,24,9999,25,9999,31,9999);
    UsePlayerPedAnims();
    return 1;
}

public OnGameModeExit()
{
    return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
acontece isso:

ai eu dou spawn e buga o mapa :


nгo sei se й bug do gta, pq nunca aconteceu isso, se for algum cуdigo errado me avisem ai por favor agradeзo
Reply
#2

Quote:
Originally Posted by LucasTotola
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerInterior(playerid,14);
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
SetPlayerFacingAngle(playerid, 270.0);
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
return 1;
}
Coloca em OnPlayerSpawn:
SetPlayerInterior(playerid,0);
Reply
#3

pawn Код:
//OnPlayerSpawn

SetPlayerInterior(playerid,0);
Reply
#4

opaa, vou testar aqui, tomara que funcione =)
Reply
#5

Bom, atй funcionou, mas ai o cara n fica mais no guarda roupa la, ele fica tipo q voando, mas ta de boa, vlw ai =)
Reply
#6

Quote:
Originally Posted by LucasTotola
Посмотреть сообщение
Bom, atй funcionou, mas ai o cara n fica mais no guarda roupa la, ele fica tipo q voando, mas ta de boa, vlw ai =)
Nгггггooooo, entгo vc colocou no OnPlayerRequestClass, coloca no OnPlayerSpawn, porque tipo:

Na seleзгo de skins tu coloco o interior do cara pra 14 e nгo existe nenhuma funзгo para setar o interior para 0 quando o cara sair da seleзгo de skins. O que vocк deve fazer й setar o interior para 0 quando o player spawnar.
Reply
#7

eu coloquei assim irmгo:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,0);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}
Reply
#8

Deixa isso como estava, procura por OnPlayerSpawn e coloca o SetPlayerInterior(playerid, 0); lб, que й pra setar o interior do cara assim que ele spawnar.
Reply
#9

AEEEEE, agora sim ta dahora, para a galera q ta tendo esse problema aqui ta tudo ok e ta assim:

pawn Код:
ublic OnPlayerRequestClass(playerid, classid)
{
    SetPlayerInterior(playerid,14);
    SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    SetPlayerFacingAngle(playerid, 270.0);
    SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
    return 1;
}

public OnPlayerConnect(playerid)
{
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
    SetPlayerInterior(playerid, 0);
    return 1;
}
VALEW DMAGNU, vc й ocara =D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)