Jump to content
  • 0

nu ma spawneaza dupa ce dau register


Question

Posted

functia

public OnPlayerSpawn(playerid)
{

    SetPlayerSkin(playerid, PlayerInfo[playerid][pSkin]);
    SetCameraBehindPlayer(playerid);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetPlayerHealth(playerid, 100.0);
    SpawnPlayer(playerid);
    SetPlayerPos(playerid, 2007.6338, 1167.8236, 10.8203);
    SetPlayerFacingAngle(playerid, 277.4187);
    return true;
}

gen imi arata albastru si un cap stricat

1 answer to this question

Recommended Posts

  • 0
Posted

Sterge linia SpawnPlayer(playerid);

Ca sa iti explic si ce se intampla, e simplu. De fiecaredata cand folosesti, oriunde in Gamemode functia SpawnPlayer se executa automat Callback-ul OnPlayerSpawn. Practic, daca tu treci in callback functia SpawnPlayer, o sa se creeze un loop infinit.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.