28.03.2013, 19:40
codes did not work
I fixed;
I fixed;
pawn Код:
if((newkeys & KEY_FIRE) && (oldkeys & KEY_FIRE) || (newkeys & KEY_FIRE) && (oldkeys & KEY_HANDBRAKE))
{
if(GetPlayerWeapon(playerid) == 41 && GraffitiBoyuyor[playerid] == 1)
{
SetTimerEx("SprayBoyuyorKontrol", 500, false, "d", playerid);
}
}
pawn Код:
forward SprayBoyuyorKontrol(playerid);
public SprayBoyuyorKontrol(playerid)
{
new keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if (!(keys & CCKey))
{
return false;
}
if(PlayerToPoint(5.0,playerid,Graffitiler[DuzenledigiGraffiti[playerid]][ObjeX],Graffitiler[DuzenledigiGraffiti[playerid]][ObjeY],Graffitiler[DuzenledigiGraffiti[playerid]][ObjeZ]))
{
if(GetPlayerWeapon(playerid) == 41 && GraffitiBoyuyor[playerid] == 1)
{
Graffitiler[DuzenledigiGraffiti[playerid]][Kalan] -= 1;
}
}
return SetTimerEx("SprayBoyuyorKontrol",500, false, "d", playerid);
}