10.03.2018, 12:24
#include <a_samp>
#define COLOR_RED 0xFF0000FF
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_RED, "You will be dead after 15 seconds");
SetTimer("kill", 15000, false);
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
}
how to set time to this for 15 seconds SetTimer("kill", 15000, false); not working
#define COLOR_RED 0xFF0000FF
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 5) == 0)
{
SendClientMessage(playerid, COLOR_RED, "You will be dead after 15 seconds");
SetTimer("kill", 15000, false);
SetPlayerHealth(playerid, 0.0);
return 1;
}
return 0;
}
how to set time to this for 15 seconds SetTimer("kill", 15000, false); not working