SA-MP Forums Archive
button spawn - 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: button spawn (/showthread.php?tid=380511)



button spawn - marquezsanchez - 25.09.2012

i have a probleme i have spwaned the player he can move but he always see the button "spawn"

my code :

pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    return 0;
}


// in a part of code
   
SpawnPlayer(playerid);
_SetPlayerPos(playerid, 1742.038696, -1860.220581, 13.579002, 0);
SetPlayerFacingAngle(playerid, 349.9);
SetPlayerSkin(playerid, 26);
TogglePlayerControllable(playerid, 0);



Re: button spawn - ViniBorn - 25.09.2012

Here is SpawnPlayer ?


Re: button spawn - GoldenM4 - 25.09.2012

Try this.
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerPos(playerid, 1742.038696, -1860.220581, 13.579002, 0);
    SetPlayerFacingAngle(playerid, 349.9);
    SetPlayerSkin(playerid, 26);
    TogglePlayerControllable(playerid, 0);
    return 0;
}
You can't double spawn someone.. unless your in a roleplay server and then tutorial mode is going..
You may also take out TogglePlayerControllable, if possible..


Re: button spawn - marquezsanchez - 26.09.2012

No i want to dont let player spawn when he he click on spawn button i spawn him with SpawnPlayer after he login but when i spawn him he always see the spawn button


Re: button spawn - XtremeR - 26.09.2012

use this then:
pawn Код:
public OnPlayerRequestClass(playerid,classid)
{
    SetPlayerPos(playerid, 1742.038696, -1860.220581, 13.579002, 0);
    SetPlayerFacingAngle(playerid, 349.9);
    SetPlayerSkin(playerid, 26);
    TogglePlayerSpectating(playerid, 1);
    return 0;
}
it will remove the spawn button


Re: button spawn - marquezsanchez - 26.09.2012

ok thx