Jump to content
  • 0

pomoc Kdo mi udělá anti cmd spam


Z.D.E.N.E.K

Dotaz

22 odpovědí na tuto otázku

Recommended Posts

  • 0

Pal do piči nie sme ako mašiny na čokolady... že ty hodíš peniaz a my to spravíme ne -_- Zdenek či kokoska či kto bovie kto sprav si to už sám.......

 

Tak keby ze vhody ten peniaz tak by to bolo v poriadku. Ale on to chce zadarmo....

Link to comment
Share on other sites

  • 0
new bool:SemLinyPrase[MAX_PLAYERS];
forward LinyPraseUtoci(playerid);

jako prvni do OnPlayerCommandText

if(SemLinyPrase[playerid]) return SendClientMessage(playerid, -1, "Nespamuj prikazama demente!");
SetTimerEx("LinyPraseUtoci", 3000, false, "i", playerid);
SemLinyPrase = true;



a nekam dolu si dej:

public LinyPraseUtoci(playerid)
{
    SemLinyPrase = false;
    return 1;
}
a aby nevznikla chybička, tak do OnPlayerConnect

SemLinyPrase = false;

asi nějak takhle. a jestli to nebude fungovat tak sem asi ****....

Link to comment
Share on other sites

  • 0
#include <a_samp>

new bool:SemLinyPrase[MAX_PLAYERS];
forward LinyPraseUtoci(playerid);

public OnPlayerCommandText(playerid, cmdtext[])
{
if(SemLinyPrase[playerid]) return SendClientMessage(playerid, -1, "Nespamuj prikazama demente!");
SetTimerEx("LinyPraseUtoci", 3000, false, "i", playerid);
SemLinyPrase = true;
return 1;
}


public LinyPraseUtoci(playerid)
{
    SemLinyPrase = false;
    return 1;
}


public OnPlayerConnect(playerid)
{
    SemLinyPrase = false;
	return 1;
}

Vypada to takhle jsou 2 errory :( 

 

C:\Users\SuperPawner\Desktop\pawno.pwn(17) : error 033: array must be indexed (variable "SemLinyPrase")
C:\Users\SuperPawner\Desktop\pawno.pwn(24) : error 033: array must be indexed (variable "SemLinyPrase")
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
 
 
2 Errors.
Link to comment
Share on other sites

  • 0

nazev chybny promeny mluvi za vse :) aspon si to precti, a jestli nemas IQ nizsi nez 80 a netrpis tim padem debilitou, tak prijdes na to ze sou tam 2 uplne trivialni chyby :) staci nekam 2x pridat [playerid] . aspon vim ze nad vecma ani nepremejslis...

Link to comment
Share on other sites

  • 0

tak schvalne. nahore je definovany new bool:SemLinyPrase[MAX_PLAYERS];

 

coz znamena ze bude mit kazdej hrac vlastni promennou jestli je nebo neni liny prase.

takze kdyz chces zmenit jeho stav prasoidni lenosti na true nebo false, tak co udelas?
 

ps: fandim ti, ty to zvladnes

Link to comment
Share on other sites

  • 0
new bool:SemLinyPrase[MAX_PLAYERS];
forward LinyPraseUtoci(playerid);

jako prvni do OnPlayerCommandText

if(SemLinyPrase[playerid]) return SendClientMessage(playerid, -1, "Nespamuj prikazama demente!");
SetTimerEx("LinyPraseUtoci", 3000, false, "i", playerid);
SemLinyPrase[playerid] = true;



a nekam dolu si dej:

public LinyPraseUtoci(playerid)
{
    SemLinyPrase[playerid] = false;
    return 1;
}
a aby nevznikla chybička, tak do OnPlayerConnect

SemLinyPrase[playerid] = false;

tady to mas bez umyslnejch chyb.....

Link to comment
Share on other sites

  • 0

Ja nevim čim to je ale kvuli toho fs se mi nejde přihlasit :( 


#include <a_samp>

new bool:SemLinyPrase[MAX_PLAYERS];
forward LinyPraseUtoci(playerid);

public OnPlayerCommandText(playerid, cmdtext[])
{
if(SemLinyPrase[playerid]) return SendClientMessage(playerid, -1, "Nespamuj prikazama demente!");
SetTimerEx("LinyPraseUtoci", 3000, false, "i", playerid);
SemLinyPrase[playerid] = true;
return 1;
}


public LinyPraseUtoci(playerid)
{
    SemLinyPrase[playerid] = false;
    return 1;
}

public OnPlayerConnect(playerid)
{
SemLinyPrase[playerid] = false;
	return 1;
}

Link to comment
Share on other sites

  • 0

#include <a_samp>

new bool:SemLinyPrase[MAX_PLAYERS];
forward LinyPraseUtoci(playerid);

public OnPlayerCommandText(playerid, cmdtext[])
{
if(SemLinyPrase[playerid]) return SendClientMessage(playerid, -1, "Nespamuj prikazama demente!");
SetTimerEx("LinyPraseUtoci", 3000, false, "i", playerid);
SemLinyPrase[playerid] = true;
return 0;
}


public LinyPraseUtoci(playerid)
{
    SemLinyPrase[playerid] = false;
    return 0;
}

public OnPlayerConnect(playerid)
{
SemLinyPrase[playerid] = false;
	return 1;
}

tak zkus takhle

 

sem tam vyjebal returny

Link to comment
Share on other sites

  • 0

Tak keby ze vhody ten peniaz tak by to bolo v poriadku. Ale on to chce zadarmo....

 

 

Já nevím vybanovat ty to pošuky strašný problém jít na stránku google.com a tam zadat forum.samp "VĚC KTEROU POTŘEBUJI" né oni to neumí gramlavci Cash by bral každý :DD

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...