08.01.2015, 11:16
Hello, I have a text draw when a player enter pickup it show it to him and set a timer when this timer finish the text draw must hide but it not here is the code
And the timer
Please Help !
PHP код:
else if(pickupid == mafia || pickupid == bikers || pickupid == grove || pickupid == ballas || pickupid == rifas || pickupid == tirads)
{
if(PlayerInfo[playerid][pGang] == 0)
{
TextDrawShowForPlayer(playerid, Text:Textdraw0);
TextDrawShowForPlayer(playerid, Text:Textdraw1);
SetTimerEx("hideText", 3000, false, "i", playerid);
return 1;
}
return 1;
}
PHP код:
forward hideText(playerid);
public hideText(playerid)
{
TextDrawHideForPlayer(playerid, Text:Textdraw0);
TextDrawHideForPlayer(playerid, Text:Textdraw1);
return 1;
}