BUG Spawn
#1

Hello everyone, I have a small problem, when the player dies the very first time, his returns to ClassSelection, but after it works normally O_o..
If you need a script, tell me.

Video of bug: https://www.youtube.com/watch?v=khet...ature=*********
Reply
#2

OnPlayerRequestClass -> SpawnPlayer?
Reply
#3

and how i can choose a team ? is a TDM gamemode
Reply
#4

Are you sure ForceClassSelection isn't anywhere in the script?
Reply
#5

Nope, only on a commands.. :/
Reply
#6

uppppp
Reply
#7

Can you post OnPlayerDeath?
Reply
#8

Of course, onplayerdead link: https://pastebin.com/KHPHspHh
Reply
#9

uppppppppppppp
Reply
#10

uppppp
Reply
#11

Look up the variable name for the textdraw with the string of "TEAM GROVE", then paste every code where TextDrawShowForPlayer with the variable is.
Reply
#12

It seems like somewhere in your gamemode or loaded filterscripts you're using ForceClassSelection
https://sampwiki.blast.hk/wiki/ForceClassSelection
Reply
#13

I don't have filterscipt and i only use ForceClassSelection on 1 command :/
Reply
#14

i know this is a really stupid question but... did you ever try
Код:
if(GetPlayerTeam(playerid)!=0)   //check if player selected a team
{
    ///force your players to spawn here.
}
else{
    ///do your spawn selection here.
}
if player selected a team, GetPlayerTeam wouldnt return 0 and you can directly spawn them? i assume on second death you already use it but maybe you dont define if before first death? it looks like that to me. Its generally the silliest and simplest answer solves the problem in death scripts, if you are sure of you didnt do anything wrong in the first question that pops in minds.
Reply
#15

Quote:
Originally Posted by grymtn
Посмотреть сообщение
i know this is a really stupid question but... did you ever try
Код:
if(GetPlayerTeam(playerid)!=0)   //check if player selected a team
{
    ///force your players to spawn here.
}
else{
    ///do your spawn selection here.
}
if player selected a team, GetPlayerTeam wouldnt return 0 and you can directly spawn them? i assume on second death you already use it but maybe you dont define if before first death? it looks like that to me. Its generally the silliest and simplest answer solves the problem in death scripts, if you are sure of you didnt do anything wrong in the first question that pops in minds.
I did not understand.. :/
Reply
#16

uppppppp
Reply
#17

upppppp
Reply
#18

uppppppp
Reply
#19

You're using the callbacks wrong if you aren't using OnPlayerRequestClass...
Reply
#20

Huh ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)