[POMOC] Spawn

Započeo MaTTaTa, Septembar 24, 2011, 23:51:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:BMW - gf edit
Detaljan opis problema: kada promjenim spawn mjesto civila i dalje se spawnaju na isto mjesto.
Dio skripte:
public SetPlayerSpawn(playerid)
{
if(IsPlayerConnected(playerid))
{
    SetPlayerSkin(playerid, PlayerInfo[playerid][pChar]);
    if(PlayerInfo[playerid][pTut] == 0)
    {
   gOoc[playerid] = 1; gNews[playerid] = 1; gFam[playerid] = 1;
TogglePlayerControllable(playerid, 0);
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 1123.3643,-2036.9781,69.8873);
RegistrationStep[playerid] = 1;
SendClientMessage(playerid, COLOR_LIGHTGREEN, "DobrodoÅ¡li na  server, molim vas ispunite podatke.");
ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "Kojeg ste spola?", "Musko \nZensko", "U redu", "Odustani");

    }
    if(AdminSpec[playerid] == 1)
{
    return 1;
}
new rand;
new house = PlayerInfo[playerid][pPhousekey];
if(PlayerPaintballing[playerid] != 0)
{
    SafeResetPlayerWeapons(playerid);
      SafeGivePlayerWeapon(playerid, 29, 999);
    rand = random(sizeof(PaintballSpawns));
SetPlayerPos(playerid, PaintballSpawns[rand][0], PaintballSpawns[rand][1], PaintballSpawns[rand][2]);
    return 1;
}
if(PlayerInfo[playerid][pJailed] == 1)
{
    SetPlayerInterior(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,2518.356,-1541.119,27.5666);
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne potpune kazne, nazad u zatvor.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Ne potpune kazne, nazad u zatvor.");
return 1;
}
if(PlayerInfo[playerid][pJailed] == 2)
{
    SetPlayerInterior(playerid, 0);
    PlayerInfo[playerid][pInt] = 0;
SetPlayerPos(playerid,268.5777,1857.9351,9.8133);
SetPlayerWorldBounds(playerid, 337.5694,101.5826,1940.9759,1798.7453); //285.3481,96.9720,1940.9755,1799.0811
return 1;
}
  if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0)
         {
             if(FirstSpawn[playerid] != 1)
             {
                //new string[256];
               MedicBill[playerid] = 0;
               MedicTime[playerid] = 0;
               NeedMedicTime[playerid] = 0;
               SetPlayerToTeamColor(playerid);
               SetPlayerPos(playerid,1178.8889,-1323.5004,14.1423);
               SetPlayerFacingAngle(playerid, 0);
               SetPlayerInterior(playerid,0);
               PlayerInfo[playerid][pInt] = 0;
               /*SetPlayerHealth(playerid, 50.0);
               PlayerInfo[playerid][pDeaths] += 1;
                SetPlayerInterior(playerid, 3);
                PlayerInfo[playerid][pInt] = 3;
                 rand = random(sizeof(gMedicSpawns));
               SetPlayerPos(playerid, gMedicSpawns[rand][0], gMedicSpawns[rand][1], gMedicSpawns[rand][2]); // Warp the player
               SetPlayerFacingAngle(playerid, 0);
                 TogglePlayerControllable(playerid, 0);
                 GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~You need to rest now ...", 30000, 3);
                   JustDied[playerid] = 1;
                 MedicTime[playerid] = 1;
                 ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                 if(PlayerInfo[playerid][pDonateRank] > 0)
                 {
                     NeedMedicTime[playerid] = 30;
                 }
                 else
                 {
                    NeedMedicTime[playerid] = 40;
               }*/
                return 1;
            }
         }

Neke slike/video za lakse dobivanje pomoci(neobavezno)://

Jeli tu sada svagdje moram iste kordinate unesti da bi se spawnalo na novom jestu :D




Lokaciju spawn mjesta ne mjenjas u public OnPlayerSpawn, nego kucaj u trazilicu (( u pawnu )) AddPlayerClass i zamijeni sa svojim. Imas dosta toga na ovom forumu o tome...

ewo da ti kazem da neradi mislis na ovo??

   for(new i = 0; i <= sizeof(Peds)-1; i++)
{
AddPlayerClass(Peds[i][0],1123.3643,-2036.9781,69.8873,280.5989,-1,-1,-1,-1,-1,-1);
}


Rjesio sam i nije kako si rekao MOZE LOCK!!!
Poslednja Izmena: Septembar 25, 2011, 19:17:23 POSLE PODNE od Ra[K]uN