[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
[13:35:00] [POSAO] {dd750d}Odnesite porudzbinu do stola
if(Konobar[playerid] == 1)
{
if(DostavljenoPorudzbina[playerid] == 0) return DostavljenoPorudzbina[playerid] = 0; DisablePlayerCheckpoint(playerid); RemovePlayerAttachedObject(playerid, 0);
SCM(playerid, COLOR_WHITE, "[POSAO] {dd750d}Odnesite porudzbinu do stola");
Konobar[playerid] = 2;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject( playerid, 0, 2219, 1, 0.002953, 0.469660, -0.009797, 269.851104, 88.443557, 0.000000, 0.804894, 1.000000, 0.822361 );
DisablePlayerCheckpoint(playerid);
new rand = random(sizeof(KonobarCP));
SetPlayerCheckpoint(playerid, KonobarCP[rand][0], KonobarCP[rand][1], KonobarCP[rand][2], 1.0);
}
|
make sure that the message is not in a loop and what is that SCM? is it simply a define for sendclientmessage?
|
i try make new konobar2 but still spammingif(Konobar[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);
Konobar[playerid] = 0;
Konobar2[playerid] = 1;
if(DostavljenoPorudzbina[playerid] == 0) return DostavljenoPorudzbina[playerid] = 0; DisablePlayerCheckpoint(playerid); RemovePlayerAttachedObject(playerid, 0);
SCM(playerid, COLOR_WHITE, "[POSAO] {dd750d}Odnesite porudzbinu do stola");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerAttachedObject( playerid, 0, 2219, 1, 0.002953, 0.469660, -0.009797, 269.851104, 88.443557, 0.000000, 0.804894, 1.000000, 0.822361 );
new rand = random(sizeof(KonobarCP));
SetPlayerCheckpoint(playerid, KonobarCP[rand][0], KonobarCP[rand][1], KonobarCP[rand][2], 1.0);
}
if(Konobar2[playerid] == 1)
{
SetTimerEx("SpawnFreeze", 2000, 0, "i", playerid);
StopLoopingAnim(playerid);
ClearAnimations(playerid);
DisablePlayerCheckpoint(playerid);
Konobar[playerid] = 1;
DostavljenoPorudzbina[playerid] -= 1;
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CARRY);
SetPlayerCheckpoint(playerid,1715.5977,-1130.2435,24.1847,1.0);
}