Smulyz Posted August 16, 2022 Posted August 16, 2022 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
0 Trippie Posted August 27, 2022 Posted August 27, 2022 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.
Question
Smulyz
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
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 accountSign in
Already have an account? Sign in here.
Sign In Now