#1

Hello,after death showing me spawn button..So i did simple timer into OnPlayerDeath but when i die it spawn me 2 times...I dont know why.
PHP код:
//OnPlayerDeath
SetSpawnInfo(playerid,0,0,1109.2490,-1796.0345,16.5938,3.2391,0,0,0,0,0,0);
    
SetTimerEx("delayspawn",3000,false,"i",playerid);
    
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(killerid)+1); 
//public
PHP код:
public delayspawn(playerid)
{
     
SpawnPlayer(playerid);
     
SetPlayerHealth(playerid,100);
     return 
1;

Please help me ..
Reply
#2

Do you have ForceClassSelection function in OnPlayerDeath?
Reply
#3

No,i dont know what it is.
Reply
#4

If I did understand good there is a timer that will automatically spawn you after some seconds. You will get spawned twice because that timer is on.

ForceClassSelection is forcing player to use class selection. It can be useful at some point. For an example:
Код:
CMD:newclass(playerid, params[])
{
    ForceClassSelection(playerid);
    return 1;
}
I remember facing huge problems with class selection in my script. It was in the ass fixing it.
Reply
#5

I have got this timer,because when i die it show me spawn button i think its class selection,but i dont want it ..I just want this-when player die automatic spawn him...I hope you can understand me...
Reply
#6

Aham.

So you don't want the class selection? Well that's really strange. You will have to dig deeper to look for clues what might be causing the problems even the smallest things can cause that.

Well I think timer is useless because you're facing problem with class selection by removing it everything will be okay. Is game mode yours or you're editing something? Problems such as these are much easier to solve when you know the script.

Can you show us your full OnPlayerDeath? (Or you've already done that? Because you have just mentioned a few things so I'm confused is it full or incomplete. )
Reply
#7

Quote:
Originally Posted by Fratello
Посмотреть сообщение
Aham.

So you don't want the class selection? Well that's really strange. You will have to dig deeper to look for clues what might be causing the problems even the smallest things can cause that.

Well I think timer is useless because you're facing problem with class selection by removing it everything will be okay. Is game mode yours or you're editing something? Problems such as these are much easier to solve when you know the script.
he means, after death, not in connect.

@OP

Quote:

Can you show us your full OnPlayerDeath? (Or you've already done that? Because you have just mentioned a few things so I'm confused is it full or incomplete. )

Reply
#8

Why my previous post is being ignored?
If he uses ForceClassSelection, then he'll get class selection after death.
@OP, search for ForceClassSelection (CTRL+F) and tell us if it's in your script.
Reply
#9

I already posted OnPlayerDeath(full) and if i use ForceClassSelection so it show me classes and also spawn button,
but i dont want it..I dont want this spawnbutton.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)