03.10.2009, 22:21
public OnPlayerDeath(playerid, killerid, reason)
{
if(TEAM_PRIS[killerid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, " You have now got Police Keys, You can open all doors");
TEAM_COPKeys[playerid] = 1;
GameTextForPlayer(playerid, "~p~Police Keys: ~g~GAINED", 2000, 1);
TextDrawShowForPlayer(playerid, Text:Textdraw2);
SetTimer(kill, 60000, 1);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " You have now lost your Police Keys.");
TEAM_COPKeys[playerid] = 0;
GameTextForPlayer(playerid, "~p~Police Keys: ~R~LOST", 2000, 1);
TextDrawShowForPlayer(playerid, Text:Textdraw6);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
}
return 1;
}
public kill()
{
TextDrawHideForPlayer(playerid, Text:Textdraw6);
}
something like that you need some sort of timer not just show textdraw then instantly hide it
{
if(TEAM_PRIS[killerid] == 1)
{
SendClientMessage(playerid, COLOR_YELLOW, " You have now got Police Keys, You can open all doors");
TEAM_COPKeys[playerid] = 1;
GameTextForPlayer(playerid, "~p~Police Keys: ~g~GAINED", 2000, 1);
TextDrawShowForPlayer(playerid, Text:Textdraw2);
SetTimer(kill, 60000, 1);
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, " You have now lost your Police Keys.");
TEAM_COPKeys[playerid] = 0;
GameTextForPlayer(playerid, "~p~Police Keys: ~R~LOST", 2000, 1);
TextDrawShowForPlayer(playerid, Text:Textdraw6);
TextDrawHideForPlayer(playerid, Text:Textdraw2);
}
return 1;
}
public kill()
{
TextDrawHideForPlayer(playerid, Text:Textdraw6);
}
something like that you need some sort of timer not just show textdraw then instantly hide it