SA-MP Forums Archive
Message Repeat x5 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Message Repeat x5 (/showthread.php?tid=646908)



Message Repeat x5 - Wucha - 26.12.2017

Problem: DisablePlayerCheckpoint(playerid); dont work and SetPlayerCheckpoint(playerid, KonobarC.... dont work

Код:
[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);
}



Re: Message Repeat x5 - RogueDrifter - 26.12.2017

make sure that the message is not in a loop and what is that SCM? is it simply a define for sendclientmessage?


Re: Message Repeat x5 - cuber - 26.12.2017

Quote:
Originally Posted by RogueDrifter
Посмотреть сообщение
make sure that the message is not in a loop and what is that SCM? is it simply a define for sendclientmessage?
yes


Re: Message Repeat x5 - Wucha - 26.12.2017

There is nowhere loop

Yes,scm is sendclientmessage


Re: Message Repeat x5 - RogueDrifter - 26.12.2017

show the full code of where this message is being sent.


Re: Message Repeat x5 - Wucha - 26.12.2017

This is full code in OnPlayerEnterCheckPoint


Re: Message Repeat x5 - RogueDrifter - 26.12.2017

Oh, well putting Konobar[playerid] =0; underneath if(Konobar[playerid] == 1) { will fix it or at least should, if you're using that variable at other places then create another one put next to that if statement a && variable ==1 or 0 then set it opposite under the if statement.


Re: Message Repeat x5 - Wucha - 26.12.2017

Again message spam.
Fix please i try make new konobar2 but still spamming


Код:
if(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);
}



Re: Message Repeat x5 - Wucha - 27.12.2017

help?


Re: Message Repeat x5 - RogueDrifter - 27.12.2017

I already told you how to do this, if you won't show the whole onplayerentercheckpoint and the place where you use SetPlayerCheckpoint then i can't help further.