some body help me plz a little problem
#1

i have some problem with this



Quote:

if(InDMS[playerid] == 1)
{
SetPlayerHealth(playerid,0);

SendClientMessage(playerid,COLOR_LIGHTGREEN,"You Have Left The Deathmatch Stadium.");

format(string, sizeof(string), "%s (%d) Has Left Deathmatch Stadium. (/leave)",PlayerInfo[playerid][pName],playerid);
SendClientMessageToOthers(playerid,COLOR_LIGHTGREE N,string);

InDMS[playerid] = 0;
}

i want that player respawn but i have no idea b/c i am new so plz help me how can i set this that player respawn plz plz plz help me
Reply
#2

PHP код:
if(InDMS[playerid] == 1)
{
    
SetPlayerHealth(playerid,0.0);
    
SendClientMessage(playerid,COLOR_LIGHTGREEN,"You have left the Deathmatch Stadium.");
    
format(string,sizeof string,"%s (%d) has left deathmatch Stadium. (/leave)",PlayerInfo[playerid][pName],playerid);
    
SendClientMessageToOthers(playerid,COLOR_LIGHTGREEN,N,string);
    
InDMS[playerid] = 0;
    
SpawnPlayer(playerid);// so or:
    //SetPlayerPos(playerid,1.0,1.0,1.0);//here the coordinates.

You can choose SpawnPlayer(playerid); or direct SetPlayerPos.

# EDIT:
Please delete the other thread which you started.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)