29.09.2018, 12:12
PHP код:
forward RespawnCount(playerid);
public OnPlayerConnect(playerid)
{
if(RespawnGeneral() == 0)
{
playertimer[playerid] = SetTimerEx("RespawnCount", 1000, true, "i", playerid);
}
public RespawnCount(playerid)
{
if(RespawnGeneral() == 0)
{
KillTimer(playertimer[playerid]);
}
else
{
new str[32];
format(str, sizeof(str), "%s", TimeConvert(RespawnGeneral()));
}
return 1;
}