Textdraw Problem
#1

Hi i have a problem with the textdraw wen i die once it apears 2 death messages in stead of one and i want to move the blue textdraw like in the picture. Please help me.

Here is the image:



And OnPlayerDeath :

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:Health;
    GetPlayerHealth(killerid, Health);
    SetPlayerHealth(killerid, Health+20);
    new Float:Armour;
    GetPlayerArmour(killerid, Armour);
    SetPlayerArmour(killerid, Armour+20);
	GameTextForPlayer(playerid,"~b~AI ~r~MURIT",1000,1);
    SendDeathMessage(killerid, playerid, reason);
    GameTextForPlayer(killerid,"~r~CRIMINALULE!",4000,3);

    SendDeathMessage(killerid, playerid, reason);
    if( DMZone[killerid] >= 1)
    {
    GivePlayerMoney(killerid, 15000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GameTextForPlayer(killerid, "~g~Killing Spree~n~~b~+15.000$~y~+20HP~r~+20ARMOUR", 6000, 1);
    PlayCrimeReportForPlayer(killerid, killerid, 3);
    }
    if( DMZone[killerid] == 0)
    {
    GivePlayerMoney(killerid, 15000);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    GameTextForPlayer(killerid, "~g~Killing Spree~n~~b~+15.000$~y~+20HP~r~+20ARMOUR", 6000, 1);
    PlayCrimeReportForPlayer(killerid, killerid, 3);
    }
	if(killerid == INVALID_PLAYER_ID)
	{
    /*SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);*/
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    }
    else
    {
	/*SendDeathMessage(killerid,playerid,reason);*/
	SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
	GivePlayerMoney(killerid,15000);
	SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    }
    if(Planted[playerid] == 1)
	{
	DestroyObject(C4[playerid]);
	Bomb[playerid] = 0;
	Planted[playerid] = 0;
	}
	Pspawned[playerid] = 0;
	DM[playerid] = 0;
	if(HaveGPS[playerid]) {
    KillTimer(GPSTimer[playerid]);
    HaveGPS[playerid] = false;
    GPSTimer[playerid] = 0;
    }
 	return 1;
}
Reply
#2

hmmmm....
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new Float:Health;
    GetPlayerHealth(killerid, Health);
    SetPlayerHealth(killerid, Health+20);
    new Float:Armour;
    GetPlayerArmour(killerid, Armour);
    SetPlayerArmour(killerid, Armour+20);
    GameTextForPlayer(playerid,"~b~AI ~r~MURIT",1000,1);
    GameTextForPlayer(killerid,"~r~CRIMINALULE!",4000,3);
    if( DMZone[killerid] >= 1)
    {
    GivePlayerMoney(killerid, 15000);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GameTextForPlayer(killerid, "~g~Killing Spree~n~~b~+15.000$~y~+20HP~r~+20ARMOUR", 6000, 1);
    PlayCrimeReportForPlayer(killerid, killerid, 3);
    }
    if( DMZone[killerid] == 0)
    {
    GivePlayerMoney(killerid, 15000);
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
    GameTextForPlayer(killerid, "~g~Killing Spree~n~~b~+15.000$~y~+20HP~r~+20ARMOUR", 6000, 1);
    PlayCrimeReportForPlayer(killerid, killerid, 3);
    }
    if(killerid == INVALID_PLAYER_ID)
    {
    /*SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);*/
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    }
    else
    {
    /*SendDeathMessage(killerid,playerid,reason);*/
    SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
    GivePlayerMoney(killerid,15000);
    SetPlayerWorldBounds(playerid, 20000.0000,-20000.0000,20000.0000,-20000.0000); // Bounderies Off//
    }
    if(Planted[playerid] == 1)
    {
    DestroyObject(C4[playerid]);
    Bomb[playerid] = 0;
    Planted[playerid] = 0;
    }
    Pspawned[playerid] = 0;
    DM[playerid] = 0;
    if(HaveGPS[playerid]) {
    KillTimer(GPSTimer[playerid]);
    HaveGPS[playerid] = false;
    GPSTimer[playerid] = 0;
    }
    return 1;
}
Reply
#3

pawn Код:
SendDeathMessage(killerid, playerid, reason);
    GameTextForPlayer(killerid,"~r~CRIMINALULE!",4000,3);

    SendDeathMessage(killerid, playerid, reason);

//you have it 2 times, delete one of SendDeathMessage
about that position: just change coords to this: (not sure if it will be right there) x: 605.0 y: 30.0

pawn Код:
TextDrawCreate(605.0, 30.0, draw);
Reply
#4

Can i get your team viewer i can solve the problem !
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)