How Can i Delete this?
#1

When a character die, somekind of dialog appears on screen, which says << |>> | Respawn
I want to delete it, how can I do it?
I've serched for the text showed but nothing found.
Here a screen :

I was thinking about the creation code to search and delete it.
It also appears when u login and must insert the password
Reply
#2

You can find the uninstall sobiet in your main GTA folder.
Reply
#3

Check if you have ForceClassSelection(playerid); in OnPlayerDeatch()
Reply
#4

Quote:
Originally Posted by suhrab_mujeeb
Посмотреть сообщение
You can find the uninstall sobiet in your main GTA folder.
Simple as that. It's your ****** that is doing that. Either that, or you have ForceClassSelection somewhere in your script.
Reply
#5

@suhrab_mujeeb -.-" I mean the 3 buttons...
@Drebin
@Walsh
Nope I've searched for that too, no text found...

Here is the code of OnPlayerDeath
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
		pgxmorto = 1;
		PlayerInfo[playerid][pInvWeapon] = 0;
		PlayerInfo[playerid][pInvAmmo] = 0;
		new string[256];
        for(new n = 0; n < sizeof(GangZoneInfo); n++)
		{
  			if(PlayerToPoint(25, playerid,GangZoneInfo[n][EnterX], GangZoneInfo[n][EnterY], GangZoneInfo[n][EnterZ]))
			{
				if(CapoGang[playerid] == GangZoneInfo[n][gzOwned] && InizioGangWar[playerid] == 1)
				{
					format(string, sizeof(string), "%s ti ha ucciso, hai perso il tuo territorio",GetPlayerNameEx(killerid));
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
	        		GangZoneInfo[n][gzOwned] = PlayerInfo[killerid][pClan];
	        		strmid(GangZoneInfo[n][gzOwner],Clan[PlayerInfo[killerid][pClan]][cName], 0, strlen(Clan[PlayerInfo[killerid][pClan]][cName]), 999);
	        		format(string, sizeof(string), "%s ha ucciso %s il capo clan della gang, Avete vinto la gang war!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
	        		SendClanMessage(PlayerInfo[killerid][pClan],COLOR_LIGHTBLUE, string);
                    SaveGangZones();
				}
				else if(CapoGang[playerid] == PlayerInfo[playerid][pClan] && InizioGangWar[playerid] == 1)
				{
				    format(string, sizeof(string), "%s ti ha ucciso, hai perso l'attacco al territorio",GetPlayerNameEx(killerid));
	        		SendClientMessage(playerid,COLOR_LIGHTBLUE, string);
	        		format(string, sizeof(string), "%s ha ucciso %s il capo clan della gang, Avete vinto la gang war!",GetPlayerNameEx(killerid),GetPlayerNameEx(playerid));
	        		SendClanMessage(PlayerInfo[killerid][pClan],COLOR_LIGHTBLUE, string);
                }
                else if(Difendere[playerid] == playerid || Attaccare[playerid] == playerid && InizioGangWar[playerid] == 1)
                {
                    format(string, sizeof(string), "%s и stato annientato!",GetPlayerNameEx(playerid));
	        		SendClanMessage(PlayerInfo[playerid][pClan],COLOR_WHITE, string);
	        		Difendere[playerid] = 0;
	        		Attaccare[playerid] = 0;
	        	}
	        	CapoGang[playerid] = 255;
			}
		}
    	if(IDContratto == playerid)
    	{
    	    if(PlayerInfo[killerid][pFaction] == 8)
    	    {
            	GivePlayerCash(killerid, SoldiContratto);
				for(new i=0; i<MAX_PLAYERS; i++)
				{
                    if(PlayerInfo[i][pFaction] == 8)
                    {
                        SendClientMessage(i,BLUE, "[INFO:] Contratto sciolto motivo: Contrattato morto");
                        return 1;
					}
				}
			}
			IDKiller = 999;
			IDContratto = 999;
			SoldiContratto = 0;
		}
		if(Rapinatorec == playerid)
		{
		    new f = maxobjm+1;
			for(new a = 0; a < sizeof(ObjSCoords); a++)
			{
				if(ObjSCoords[a][0] == 0.0) f = a;
			}
			if(f == maxobjm+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare la tua sacca a terra");
			else
			{

				if(Bottino[playerid] > 0)
				{
					RemovePlayerAttachedObject(playerid, 3);
					GetPlayerPos(playerid, ObjSCoords[f][0], ObjSCoords[f][1], ObjSCoords[f][2]);
					objectsacca[f] = CreateDynamicObject(1550,ObjSCoords[f][0],ObjSCoords[f][1],ObjSCoords[f][2]-1,93.7,120.0,120.0);
					SaccaDropped[f] = Bottino[playerid];
				}
				Rapinatorec = 255;
				CasJobTime = -1;
				Bottino[playerid] = 0;
				TextDrawHideForPlayer(playerid, Textdraw14);
   			}
		}
		if(Rapinatore == playerid)
    	{
    	    new f = maxobjm+1;
			for(new a = 0; a < sizeof(ObjSCoords); a++)
			{
				if(ObjSCoords[a][0] == 0.0) f = a;
			}
			if(f == maxobjm+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare la tua sacca a terra");
			else
			{
			    if(Bottino[playerid] > 0)
				{
					SaccaDropped[f] = Bottino[playerid];
					RemovePlayerAttachedObject(playerid, 3);
					GetPlayerPos(playerid, ObjSCoords[f][0], ObjSCoords[f][1], ObjSCoords[f][2]);
					objectsacca[f] = CreateDynamicObject(1550,ObjSCoords[f][0],ObjSCoords[f][1],ObjSCoords[f][2]-1,93.7,120.0,120.0);
				}
	        	Rapinatore = 255;
				BankJobTime = -1;
				Bottino[playerid] = 0;
				TextDrawHideForPlayer(playerid, Textdraw14);
   			}
    	}
		RespawnOspedale[playerid] = 1;
		//GETTA L'ARMA ALLA MORTE
			new gunID = GetPlayerWeapon(playerid);
			new gunAmmo = GetPlayerAmmo(playerid);
			if(gunID != 0 && gunAmmo != 0)
			{
				new f = maxobj+1;
				for(new a = 0; a < sizeof(ObjCoords); a++)
				{
					if(ObjCoords[a][0] == 0.0) f = a;
				}

				if(f == maxobj+1) return SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRORE:]Non puoi gettare armi a terra, prova piщ tardi!!");
   				else
   				{
						RemovePlayerWeapon(playerid, gunID);
						ObjectID[f][0] = gunID;
						ObjectID[f][1] = gunAmmo;
		        		GetPlayerPos(playerid, ObjCoords[f][0], ObjCoords[f][1], ObjCoords[f][2]);
		        		object[f] = CreateDynamicObject(GunObjects[gunID][0],ObjCoords[f][0],ObjCoords[f][1],ObjCoords[f][2]-1,93.7,120.0,120.0);
		        }
		    }
			return 1;
}
Reply
#6

add SpawnPlayer(playerid); somewhere in onplayerdeath
Reply
#7

Quote:
Originally Posted by new121
Посмотреть сообщение
add SpawnPlayer(playerid); somewhere in onplayerdeath
It's the hack that you're using. Uninstall it and then try it.
Reply
#8

It wasn't the hack.
I've fixed It putting SpawnPlayer(playerid)
And a Dialog in OnPlayerDeath,
Then make if the dialog response = 1 it respawn you, and reset the things must be reset, thanks new121
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)