[Help Please] Spawn Glitch
#1

Hi ,

I have been trying to fix this all day and nothing. Well I need to make the class selection only work in the clothes shop or in some way disable it? I have seen servers where you go into the clothes shop do /clothes and you go to a screen where you pick the clothes but the class selection arrows and spawn button dont work. Also how can I make it so that after the person registers/login in they spawn in one spot?

I tried SetPlayerPos, SpawnPlayer, SetSpawnInfo and it always sends me to that farm in blueberry with the CJ skin . Please I really need help on this I am new to scripting and trying to figure this out . Also how come sometimes I spawn in my AddPlayerClass coords not everytime just sometimes . Please Help and Thanks!
Reply
#2

Quote:
Originally Posted by XoSarahMoX
Посмотреть сообщение
Hi ,

I have been trying to fix this all day and nothing. Well I need to make the class selection only work in the clothes shop or in some way disable it? I have seen servers where you go into the clothes shop do /clothes and you go to a screen where you pick the clothes but the class selection arrows and spawn button dont work. Also how can I make it so that after the person registers/login in they spawn in one spot?

I tried SetPlayerPos, SpawnPlayer, SetSpawnInfo and it always sends me to that farm in blueberry with the CJ skin . Please I really need help on this I am new to scripting and trying to figure this out . Also how come sometimes I spawn in my AddPlayerClass coords not everytime just sometimes . Please Help and Thanks!
idk what about u are talking about class selection or about commands please more explaination.
if u want class selection in cloths shop use
PHP код:
     SetPlayerInterior(playerid,14);
    
SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
    
SetPlayerFacingAngle(playerid270.0);
    
SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
    
SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234); 
and put after
public OnPlayerSpawn(playerid)
if u willnot send him to any house etc..
PHP код:
SetPlayerInterior(playerid,0); 
Reply
#3

Like umm you see when you press F4 and die it sends you to the class selection or skin selection with the two arrows and spawn button? I want that to not work since it glitches my whole game . I have seen some servers where they dont make that work instead they make a command in the clothing store something like /buyclothes [skinid]
Reply
#4

Quote:
Originally Posted by XoSarahMoX
Посмотреть сообщение
Like umm you see when you press F4 and die it sends you to the class selection with to arrows and spawn button? I want that to not work since it glitches my whole game .
try OnPlayerDeath
use
SpawnPlayer(playerid);
Reply
#5

Okay but is there a way to make the skin/class selection not work or block it a bit? Or limit it to only a interior or something? I have seen some roleplay servers limit it to the clothes store please someone help.
Reply
#6

the same thing use SpawnPlayer(playerid); but if u mean other thing about disable when player join the server class selection
put after public OnPlayerRequestClass(playerid, classid)

SpawnPlayer(playerid);
SetPlayerSkin(playerid, skinid);
Reply
#7

Okay umm how can I stop making it make me spawn at:
AddPlayerClass(17,-39.1942,54.7379,6.4844,344.6932,0,0,0,0,0,0);
The bolded cooards? I just want to add the skin not make the person spawn at the location .
Reply
#8

AddPlayerClass(17,0,0,0,0,0,0,0,0,0,0);
Reply
#9

AddPlayerClass(17,-39.1942,54.7379,6.4844,344.6932,0,0,0,0,0,0);
the bloaded cooards 17 id for the skin
Reply
#10

Quote:
Originally Posted by XoSarahMoX
Посмотреть сообщение
Okay umm how can I stop making it make me spawn at:
AddPlayerClass(17,-39.1942,54.7379,6.4844,344.6932,0,0,0,0,0,0);
The bolded cooards? I just want to add the skin not make the person spawn at the location .
AddPlayerClass(17,0,0,0,0,0,0,0,0,0,0); will make u able to use SetPlayerPos(playerid, coards);
in
public OnPlayerSpawn(playerid)

if want change the location with out useing SetPlayerPos(playerid, coards); change the coards in line
AddPlayerClass(17,-39.1942,54.7379,6.4844,344.6932,0,0,0,0,0,0); number 17 thats skin id
and after do it to disable f4 put after OnPlayerDeath SpawnPlayer(playerid);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)