button spawn
#1

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);
Reply
#2

Here is SpawnPlayer ?
Reply
#3

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..
Reply
#4

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
Reply
#5

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
Reply
#6

ok thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)