you killed textdraw
#4

example:
Код:
new timer_death[MAX_PLAYERS],
       timer_death2[MAX_PLAYERS];
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
 new 
str[60], str2[60], pName1[MAX_PLAYER_NAME], pName2[MAX_PLAYER_NAME];
 
GetPlayerName(playeridpName1MAX_PLAYER_NAME);
 
GetPlayerName(killeridpName2MAX_PLAYER_NAME);
 
TextDrawShowForPlayer(playeridkilled);
 
format(strsizeof(str), "You death by: %s"pName2(killerid));
 
TextDrawSetString(killedstr);
 
timer_death[playerid] = SetTimerEx("hidetd_player"4000false"d"playerid);

 
TextDrawShowForPlayer(killeridkilledby);
 
format(str2sizeof(str2), "You killed by: %s"pName(playerid);
 
TextDrawSetString(killedbystr);
 
timer_death2[killerid] = SetTimerEx("hidetd_killer"4000false"d"killerid);
 return 
1;
}

forward hidetd_player(playerid);
public 
hidetd_player(playerid){
TextDrawHideForPlayer(playeridkilled);
KillTimer(timer_death[playerid]);
return 
1;
}

forward hidetd_killer(killerid);
public 
hidetd_killer(killerid){
TextDrawHideForPlayer(killeridkilledby);
KillTimer(timer_death2[killerid]);
return 
1;

Reply


Messages In This Thread
you killed textdraw - by ivndosos - 07.02.2018, 05:02
Re: you killed textdraw - by youmasterd7 - 07.02.2018, 06:30
Re: you killed textdraw - by KayJ - 07.02.2018, 08:57
Re: you killed textdraw - by dani18 - 07.02.2018, 09:09
Re: you killed textdraw - by KayJ - 07.02.2018, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)