24.08.2010, 14:10
Second way:
1. Check all the time if player is using this key, for example, KEY_FIRE (likely to be ctrl), keys differ onfoot/invehicle
Forkilling=SetTimer("Function'sName", from 200 till 500, Repeat most likely 1);
1. Check all the time if player is using this key, for example, KEY_FIRE (likely to be ctrl), keys differ onfoot/invehicle
Forkilling=SetTimer("Function'sName", from 200 till 500, Repeat most likely 1);
pawn Код:
public FunctionsName(playerid, keys, updown, leftright)
{
new keys, updown, leftright;
GetPlayerKeys(playerid, keys, updown, leftright);
if(keys&KEY_FIRE) OR if(keys==KEY_FIRE)
{
//ToDo
if(DoneAll) KillTimer(Forkilling);
}
}