Author Topic: Spawn problems?  (Read 7103 times)

0 Members and 4 Guests are viewing this topic.

Offline BIG[H]

  • Made Man
  • ***
  • Posts: 159
  • Sight of light
    • View Profile
Re: Spawn problems?
« Reply #15 on: February 15, 2012, 07:40:45 pm »
Problem?

Try to find OnGameModeInit() and add
Code: [Select]
SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
SetCameraPos(-231.4, -440.0, 32.1);
SetCameraLookAt(-232.0314, -442.6181, 33.1);
SetPlayerStartPos(-232.0314, -442.6181, 32.7944);

for example nano!
Code: [Select]
public OnGameModeInit()
{
SetGameModeText("nubs");

ShowPlayerMarkers(1);

// Player Classes
AddPlayerClassEx(1,61,335.570099,-233.904694,29.646601,164.184799,0,0,17,500,21,500);
AddPlayerClassEx(2,56,-540.355713,806.634583,97.510399,222.869095,0,0,17,500,21,500);
AddPlayerClassEx(3,68,-1037.172729,80.577003,11.579200,87.457100,0,0,17,500,21,500);
AddPlayerClassEx(4,27,327.972198,-222.016098,35.881302,157.274796,0,0,17,500,21,500);
       [b] SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
        SetCameraPos(-231.4, -440.0, 32.1);
SetCameraLookAt(-232.0314, -442.6181, 33.1);
SetPlayerStartPos(-232.0314, -442.6181, 32.7944);[/b]
}
try to understand it and learn, Remember this is only example. do not copy n paste same code or you'll destroy your script
Outdoor city server Administrator, FS server owner!

Offline faizan12345

  • Street Thug
  • *
  • Posts: 22
  • VV Developer
    • View Profile
Re: Spawn problems?
« Reply #16 on: February 16, 2012, 07:20:54 am »
Quote
Try to find OnGameModeInit() and add
Code: [Select]
SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
SetCameraPos(-231.4, -440.0, 32.1);
   SetCameraLookAt(-232.0314, -442.6181, 33.1);
   SetPlayerStartPos(-232.0314, -442.6181, 32.7944);

for example nano!
Code: [Select]
public OnGameModeInit()
{
   SetGameModeText("nubs");

   ShowPlayerMarkers(1);

   // Player Classes
   AddPlayerClassEx(1,61,335.570099,-233.904694,29.646601,164.184799,0,0,17,500,21,500);
   AddPlayerClassEx(2,56,-540.355713,806.634583,97.510399,222.869095,0,0,17,500,21,500);
   AddPlayerClassEx(3,68,-1037.172729,80.577003,11.579200,87.457100,0,0,17,500,21,500);
   AddPlayerClassEx(4,27,327.972198,-222.016098,35.881302,157.274796,0,0,17,500,21,500);
        SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
        SetCameraPos(-231.4, -440.0, 32.1);
   SetCameraLookAt(-232.0314, -442.6181, 33.1);
   SetPlayerStartPos(-232.0314, -442.6181, 32.7944);

}
try to understand it and learn, Remember this is only example. do not copy n paste same code or you'll destroy your script



Thanks.but i already do this..
No effect...