SerweryWłasny serwerDla twórcówForumFAQDokumentacjaBezpieczeństwo
Pobierz launcher
  1. Dokumentacja
  2. Zdarzenia serwera
  3. onPlayerSpawn

Zdarzenie

onPlayerSpawn

Gracz pojawił się w świecie (pierwszy raz albo po śmierci), np. po spawnPlayer.

Obsługa

addEventHandler("onPlayerSpawn", root, function() ... end)

Różnice względem MTA:SA

  • Tych parametrów z MTA:SA tu nie ma: float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension

W MTA:SA

function(float posX, float posY, float posZ, float spawnRotation, team theTeam, int theSkin, int theInterior, int theDimension)

Źródło

source to gracz.

Przykład

addEventHandler("onPlayerSpawn", root, function()
    giveWeapon(source, 22, 60)
end)

Zobacz też