02.08.2012, 14:50
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 :
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; }