spawn problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: spawn problem (
/showthread.php?tid=352644)
spawn problem -
peterory - 20.06.2012
when the player login
then the screen is a sea then you need to press the spawn button to spawn
↑ how to let the player spawn when login in (i have been use SpawnPlayer(playerid); is unuseful)
and when the player spawn
he will be dead
the cmd show player(0) died 54
what's wrong?
Re: spawn problem -
Mimic - 20.06.2012
pawn Код:
SetPawnInfo(playerid, team, skin, X, Y, Z, ANGLE, WEAPON1, WEAPON1AMMO, WEAPON2, WEAPON2AMMO, WEAPON3, WEAPON3AMMO)
https://sampwiki.blast.hk/wiki/SetSpawnInfo
Use this under the login and register system. After setting the SetSpawnInfo use SpawnPlayer(playerid);
Re: spawn problem -
[MM]RoXoR[FS] - 20.06.2012
You mean you want player to spawn as soon as he log's in?
pawn Код:
//Add this after Player Login
SetSpawnInfo(playerid, team, skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);
SpawnPlayer(playerid);
Re: spawn problem -
peterory - 20.06.2012
and why will the player died ?
Re: spawn problem -
[MM]RoXoR[FS] - 20.06.2012
He wont until there is some other code that kills him.
Код:
This forum requires that you wait 120 seconds between posts. Please try again in 15 seconds.
Re: spawn problem -
peterory - 20.06.2012
no code will set the player hp
beacuse no SetPlayerHealth code
all of the map is my make
i know i never use that code