pomoc oko promene spawna

Započeo Stefke., Maj 04, 2021, 15:20:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Citat: Lucas.PwN poslato Maj 05, 2021, 23:17:01 POSLE PODNE
Kucaj u modu Float: RandomLSSpawn1 i promjenis koordinate i tako sa Float: RandomLSSpawn1 i tjt..
Nije to to tako bi bio pr svim igracima spawn u kucu od jednog igraca nije to poenta

[pawn] };

new Float:RandomLSSpawn1[ 4 ][ 4 ] = { //ajeroport


{ 1213.5996, -1747.0599, 13.5946 },// AEODROM BEOGRAD - Krajisnik. CHANGE D TO NEW SPAWN
{ 1213.5996, -1747.0599, 13.5946 },// AERODROM BEOGRAD
{ 1213.5996, -1747.0599, 13.5946 },// AERODROM BEOGRAD
{ 1213.5996, -1747.0599, 13.5946 }// AERODROM BEOGRAD
};

new Float:RandomLSSpawn2[ 4 ][ 4 ] = {

{ 1577.5782, -2286.3655, 15.9497 },// SPAWN 1
{ 1577.5782, -2286.3655, 15.9497 },// SPAWN 1
{ 1577.5782, -2286.3655, 15.9497 },// SPAWN 1
{ 1577.5782, -2286.3655, 15.9497 }// SPAWN 1
};[/pawn]

to ce vec bilo

[pawn]stock SpawnInfo(playerid)
{
            //Proverava spawna
           return 1;
}[/pawn]
[pawn]OnPlayerConnect(playerid)
{
            //ovo
            SpawnInfo(playerid); //Odrejuje spawn
}[/pawn]
ae ovo

Citat: Fergosonn poslato Maj 05, 2021, 23:49:29 POSLE PODNE
[pawn]stock SpawnInfo(playerid)
{
            //Proverava spawna
           return 1;
}[/pawn]
[pawn]OnPlayerConnect(playerid)
{
            //ovo
            SpawnInfo(playerid); //Odrejuje spawn
}[/pawn]
ae ovo

izadje mnogo erora i warninga

Citat: Fergosonn poslato Maj 05, 2021, 23:49:29 POSLE PODNE
[pawn]stock SpawnInfo(playerid)
{
            //Proverava spawna
           return 1;
}[/pawn]
[pawn]OnPlayerConnect(playerid)
{
            //ovo
            SpawnInfo(playerid); //Odrejuje spawn
}[/pawn]
ae ovo

[pawn]public OnPlayerConnect( playerid ) {

    SCM(playerid,-1,""SRVBOJA"[MODE] "BELA"Ucitavanje Moda, sacekajte malo...");
    ServerInfo[ BrojPosetaServeru ]++;
    SaveServerStats( );
   
   CheckRekord( );
   //be_FirstSpawn[playerid] = true;
   EditGranicu[playerid] = -1;
   createAltChat(playerid);
   cObjects(playerid);
    ResetPlayer( playerid );
//   .. RegisterTDCreate( playerid );
    StopAudioStreamForPlayer( playerid );
    //PlayAudioStreamForPlayer(playerid,"http://k007.kiwi6.com/hotlink/mztxnykcab/SAINt_JHN_-_Roses_Lyrics_Imanbek_Remix.mp3");
   TogglePlayerDynamicCP( playerid, GarbageCheckpoint, 0 );
   PlayerInfo[playerid][ xOrobanoZ ] = 0;
   SetPlayerVirtualWorld(playerid, (playerid + 2000));
    SetPlayerColor(playerid, 0xAFAFAF00);
    #if ZIMSKI_MOD == 1
   EffectTimer[playerid] = SetTimerEx( "ActionEffect", 1900, true, "d", playerid );[/pawn] to imas onplayerconnect