25.06.2009, 15:45
Quote:
|
Originally Posted by flowhunter
It worked, thank you.
This script is really awesome dude! Could you tell me how to remove the polish textdraws after you die? |
About line 25360 you see that :
Quote:
|
if(bounty[playerid] > 0 && (playerGang[killerid] == 0 || playerGang[playerid] != playerGang[killerid])) { GetPlayerName(playerid, killedplayer, sizeof(killedplayer)); format(string2, sizeof(string2), "You recieved %d for killing %s.", bounty[playerid], killedplayer); SendClientMessage2(killerid, COLOR_GREEN, string2); GivePlayerMoney(killerid, bounty[playerid]); new pname[256];pname = PlayerName(playerid); pname = strreplace("[", "(", pname); pname = strreplace("[", "(", pname); pname = strreplace("]", ")", pname); pname = strreplace("]", ")", pname); TextDrawSetString(KillTextDraw[killerid], Split( Split("Zabiles ", pname, "!") , "~n~i otrzymales za to $", tostr(bounty[playerid]) )); bounty[playerid] = 0; TextDrawShowForPlayer(killerid, KillTextDraw[killerid]); SetTimerEx("HideKillDraw", 3000, false, "d", killerid); } else { new pname[256];pname = PlayerName(playerid); pname = strreplace("[", "(", pname); pname = strreplace("[", "(", pname); pname = strreplace("]", ")", pname); pname = strreplace("]", ")", pname); TextDrawSetString(KillTextDraw[killerid], Split("Zabiles ", pname, "!")); TextDrawShowForPlayer(killerid, KillTextDraw[killerid]); SetTimerEx("HideKillDraw", 3000, false, "d", killerid); } |

