Hey,
Änder es mal so ab
new timerobac = 30;
public OnPlayerGiveDamageActor(playerid, damaged_actorid, Float: amount, weaponid, bodypart)
{
//================================>
ApplyActorAnimation(damaged_actorid,"SHOP","SHP_Rob_GiveCash",4.1,0,0,0,0,30000);
SetPVarInt(playerid,"rdyForBreak", 1);
angeschossenMsg[playerid] = true; //Bei angeschossen MSG einfügen || timerobac = 30;
actorAttacked[damaged_actorid] = 1;
SetTimerEx("RobBreak", 240000, 0, "i", playerid);
//================================>
AcRobTimerb = SetTimerEx("IsDoingACRob", 1000, 1, "i", playerid);
}
return 1;
}
forward IsDoingACRob(playerid);
public IsDoingACRob(playerid)
{
timerobac --;
if(timerobac == 27)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 24)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 21)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 18)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 15)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 12)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 9)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 6)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 3)
{
SendClientMessage(playerid, -1, "x");
}
else if(timerobac == 0)
{
SendClientMessage(playerid, -1, "xD");
KillTimer(IsDoingACRob(playerid));
timerobac = 30;
}
return 1;
}