Jump to content
  • 0

....Spam Commands...


[RSD]TheBoss

Question

am incercat sa fak un spam commands dar mi-am pierdut ideile cum sa o fak...:( dar am facut ceva

am pus in OnGameModeInit

am creat o noua variabila

un timer si in el am scris

public SpamCM()
{
for(new i;i <MAX_PLAYERS;i++)
{
SpamCommands[i]=1;
SendClientMessage(i,COLOR_RED,"You did spam commands ...and now you can use commans after 10 seccons sorry.."
}
}

dar chestia e ca nu stiu cum sa fac sa nu mai poata folosi nici o comanda 10 secunde apoi ..gata..

stiu ca mai incolo trebuie sa fac..un timer in publicul cu timer...in care va putea sa foloseasvca comenzi dar nu stiu cum sa fak sa nu mai poata folosi comenzi..

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

ma...io nu vreau ce-a zis ala cu 10 secunde dupa ce ai intrat....eu vreau sa folosesti o comanda si sa o mai poti folosi abia peste 10 secunde ca sa nu faci spam...ce ai scriptat tu pentru ala face ca dupa 10 sec dupa ce a intrat numai poate folosi comenzi timp de 10 secunde..

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Guest PlayON

TheBoss" post="62095" timestamp="1300820597"]

ma...io nu vreau ce-a zis ala cu 10 secunde dupa ce ai intrat....eu vreau sa folosesti o comanda si sa o mai poti folosi abia peste 10 secunde ca sa nu faci spam...ce ai scriptat tu pentru ala face ca dupa 10 sec dupa ce a intrat numai poate folosi comenzi timp de 10 secunde..

Iara, altu, vrei mura-n gura, eu ti-a dat codul, din codu ala il poti sa il adaptezi la nevoile tale.

N-am sa mai dau mura-n gura niciodata.

Critica-ma, injura-ma, imi fac doar treaba.

Link to comment
Share on other sites

mda scuze...nu intelesesm si apropo nu vreau mura-n gura..;) vroiam doar sa ma ajuti putin ca naveam idei nu sunt scripter bun ca tine sau ca Farse sau ca stuntman...sunt pur si simplu un scripter incepator la fel ca alti :|

oricum mersi..mi-ai dat idee cum as putea face dati TP;)

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Sus la OnPlayerCommandText:

if( GetPVarInt(playerid, "WaitToCommand") == 1 ) return SendClientMessage(playerid, -1, "Trebuie sa astepti inca putin ca sa poti folosi comenzile!");
SetPVarInt(playerid, "WaitToCommand", 1); 
SetTimerEx("DontWaitToCommand", 10000, 0, "i", playerid);
//undeva in script
forward DontWaitToCommand(playerid); 
public DontWaitToCommand(playerid) return SetPVarInt(playerid, "WaitToCommand", 0);

Link to comment
Share on other sites

ms ma ..dar da o eroare

C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(64) : warning 217: loose indentation
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(76) : warning 217: loose indentation
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(88) : warning 217: loose indentation
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(115) : warning 217: loose indentation
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(117) : warning 217: loose indentation
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(117) : error 029: invalid expression, assumed zero
C:\Users\Robert\Desktop\Server of Samp\FreeRoom by TheBoss\gamemodes\LVFreeRoom.pwn(255) : warning 203: symbol is never used: "SpamCommands"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Linile
	if( GetPVarInt(playerid, "WaitToCommand") == 1 ) return SendClientMessage(playerid, -1, "Trebuie sa astepti inca putin ca sa poti folosi comenzile!");
SetPVarInt(playerid, "WaitToCommand", 1);
SetTimerEx("DontWaitToCommand", 10000, 0, "i", playerid);
	else SendClientMessage(playerid,COLOR_RED,"This Command doesn't exist.please try /help!");

stai ca incerc sa o rezolv eu...

New GameMode In Development!-Romania Team Gang War-100%!...Datimi doua Motive afrimative de ce sa-l postez si-l postez...

Link to comment
Share on other sites

Guest PlayON

Problema este aici

else SendClientMessage(playerid,COLOR_RED,"This Command doesn't exist.please try /help!");

foloseste return SendClient... la sfarsit de OnPlayerCommandText

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.