27.04.2013, 13:56
Hello
I don't understand what you want, but it is this?
PT
I don't understand what you want, but it is this?
pawn Код:
new Float:x, // top of GameMode
Float:y,
Float:z;
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED( KEY_FIRE ))
{
ICDV[playerid] = 2;
ICD[playerid] = SetTimerEx("ICountDown", 100, false, "d", playerid);
}
return 1;
}
forward ICountDown(playerid);
public ICountDown(playerid)
{
GetPlayerPos(playerid, x, y, z);
ICDV[playerid]--;
{
new str[128];
format(str,sizeof(str),"ICDV:%d | playerid:%d", ICDV[playerid], playerid);
SendClientMessageToAll(0xFFFFFFAA, str);
}
if(ICDV[playerid] == 0)
{
KillTimer(ICD[playerid]);
}
return 1;
}