[POMOC] HITNO bug na vise poznatih servera nemojte iskoristavat!

Započeo [GP]Brain, Jun 30, 2013, 12:14:57 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: USRANI GEFORCE 
Detaljan opis problema: Stavim 1 metak npr deagle u gepek i idem uzet pise da ima 1 metak i sad ako u dialog upisem neke 32 brojke npr 11111111111111111111111111111111 i odem relog pogledam u gepek iman miljardu metaka... kako mogu stavit provjeru da nemoze igrac upisat vise od 30 brojeva tako je i za drogu matse sve sta stane u gepek
Dio skripte: tribace al nezz koji dio pomagajte
Neke slike/video za lakse dobivanje pomoci(neobavezno): / :S
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}



ako je dialog probaj sa

if(strlen(inputtext) > od željene brojke) return Poruka koju želiš


ako je komanda

if(onaj parametar koji ti je oznacen za kolicinu > od željene brojke) return SCM(...


Ili postavi dio skripte gdje se to nalazi , ukoliko sam te sad zbunio



Citat: Jacky1 poslato Jun 30, 2013, 12:14:57 POSLE PODNE
Skripta koju koristim: USRANI GEFORCE 
Detaljan opis problema: Stavim 1 metak npr deagle u gepek i idem uzet pise da ima 1 metak i sad ako u dialog upisem neke 32 brojke npr 11111111111111111111111111111111 i odem relog pogledam u gepek iman miljardu metaka... kako mogu stavit provjeru da nemoze igrac upisat vise od 30 brojeva tako je i za drogu matse sve sta stane u gepek
Dio skripte: tribace al nezz koji dio pomagajte
Neke slike/video za lakse dobivanje pomoci(neobavezno): / :S

moze i ovako


if(municija < 1 || municija > 30) return  SCM(playerid, -1, "Najmanje 1 naj vise  30 ");
Other Dimension RolePlay | Uskoro
Ukoliko zelite pomoci u razvoju servera, mozete se meni javit na PP/PM!

nemoj da samo 30 metaka nego kad uzima oruzije da moze samo 30 znamenki upisat... evo cili dialog
else if(dialogid == VEHICLEITEMS_DIALOG)
{
if(response == 1)
{
switch(listitem)
{
case 0://spremi
{
    ShowPlayerDialog(playerid, VEHICLESAVETAKE_DIALOG, DIALOG_STYLE_LIST, "Prtljaznik","Oruzje\nDroga\nMatsi","Odaberi","Izlaz");
    SetPVarInt(playerid, "TrunkAction", 1);
}
case 1://uzmi
{
ShowPlayerDialog(playerid, VEHICLESAVETAKE_DIALOG, DIALOG_STYLE_LIST, "Prtljaznik","Oruzje\nDroga\nMatsi","Odaberi","Izlaz");
                    SetPVarInt(playerid, "TrunkAction", 2);
}
case 2://Predmeti
{
    new wepname1[32],
wepname2[32],
wepname3[32];

if(GetPVarInt(playerid, "cWeapon1") != 0)
    GetWeaponName(GetPVarInt(playerid, "cWeapon1"), wepname1, sizeof(wepname1));
else
      strmid(wepname1, "None", 0, 5);
     
if(GetPVarInt(playerid, "cWeapon2") != 0)
    GetWeaponName(GetPVarInt(playerid, "cWeapon2"), wepname2, sizeof(wepname2));
else
    strmid(wepname2, "None", 0, 5);
   
                    if(GetPVarInt(playerid, "cMelee") != 0)
    GetWeaponName(GetPVarInt(playerid, "cMelee"), wepname3, sizeof(wepname3));
else
strmid(wepname3, "None", 0, 5);

SendClientMessage(playerid, COLOR_LIGHTBLUE, "* ________________PREDMETI_______________ *");

            format(string, sizeof(string), "Marihuana:[%d] | Kokain:[%d] | Heroin:[%d] | Crack:[%d] | Speed:[%d] | Sirovina:[%d]", GetPVarInt(playerid, "cMarijuana"), GetPVarInt(playerid, "cCocaine"), GetPVarInt(playerid, "cHeroin"), GetPVarInt(playerid, "cCrack"), GetPVarInt(playerid, "cSpeed"), GetPVarInt(playerid, "cDrugs"));
SendClientMessage(playerid, COLOR_GREY, string);

SendClientMessage(playerid, COLOR_WHITE, " ");
            format(string, sizeof(string), "Matsi:[%d]", GetPVarInt(playerid, "cMats"));
           
SendClientMessage(playerid, COLOR_GREY, string);
            format(string, sizeof(string), "Melee:[%s]", wepname3);
           
            SendClientMessage(playerid, COLOR_WHITE, " ");
           
SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Slot 1:[%s]    |    Metaka: %d", wepname1, GetPVarInt(playerid, "cAmmo1"));

SendClientMessage(playerid, COLOR_GREY, string);
format(string, sizeof(string), "Slot 2:[%s]    |    Metaka: %d", wepname2, GetPVarInt(playerid, "cAmmo2"));
SendClientMessage(playerid, COLOR_GREY, string);

SendClientMessage(playerid, COLOR_LIGHTBLUE, "* ______________________________________*");
}
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new rand = random(4);
if(rand == 1)
{
format(string, sizeof(string), "* %s kopa po prtljazniku.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(rand == 2)
{
format(string, sizeof(string), "* %s pretrazuje prtljaznik.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(rand == 3)
{
format(string, sizeof(string), "* %s se misli.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
else if(dialogid == VEHICLESAVETAKE_DIALOG)
{
if(response == 1)
{
    if(listitem == 0 || listitem == 2)
    {
        if(IsASmallestVehicle(GetPVarInt(playerid, "cModel")))
        {
            SendClientMessage(playerid, COLOR_RED, "U ovo vozilo mozete spremiti samo drogu.");
            return 1;
        }
    }
switch(listitem)
{
case 0://Oruzje
{
                if(GetPVarInt(playerid, "TrunkAction") == 1) //Spremi
{
    if(GetPlayerWeapon(playerid) == 0)
    {
    SendClientMessage(playerid, COLOR_RED, "Nemate oruzje za spremiti u vozilo.");
return 1;
    }
  if(GetPVarInt(playerid, "cMelee") !=  0 && GetPVarInt(playerid, "cWeapon1") != 0 && GetPVarInt(playerid, "cWeapon2") != 0)
    {
    SendClientMessage(playerid, COLOR_RED, "Svi slotovi su zauzeti!");
return 1;
    }
                        if(IsMeleeWeapon(GetPlayerWeapon(playerid)) && GetPVarInt(playerid, "cMelee") != 0)
                    {
    SendClientMessage(playerid, COLOR_RED, "Slot za melee oruzja je zauzet!");
return 1;
}
if(!IsMeleeWeapon(GetPlayerWeapon(playerid)) && GetPVarInt(playerid, "cWeapon1") != 0 && GetPVarInt(playerid, "cWeapon2") != 0)
                    {
    SendClientMessage(playerid, COLOR_RED, "Slotovi za vatrena oruzja su zauzeti!");
return 1;
}
if(IsMeleeWeapon(GetPlayerWeapon(playerid)))
{
    new wepname[32];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetWeaponName(GetPlayerWeapon(playerid), wepname, sizeof(wepname));

    SetPVarInt(playerid, "cMelee", GetPlayerWeapon(playerid));
                            SafeResetPlayerWeapon(playerid, GetPlayerWeapon(playerid));
                           
    format(string, sizeof(string), "* %s sprema %s u prtljaznik.", sendername, wepname);
ProxDetector(6.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
   
}
else if(GetPVarInt(playerid, "cWeapon1") == 0)
{
new wepname[32];
if(GetPlayerAmmo(playerid) < 1500)
{
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetWeaponName(GetPlayerWeapon(playerid), wepname, sizeof(wepname));

    SetPVarInt(playerid, "cAmmo1", GetPlayerAmmo(playerid));
SetPVarInt(playerid, "cWeapon1", GetPlayerWeapon(playerid));
SafeResetPlayerWeapon(playerid, GetPlayerWeapon(playerid));

format(string, sizeof(string), "* %s sprema %s u prtljaznik.", sendername, wepname);
ProxDetector(6.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
    SendClientMessage(playerid, COLOR_RED, "U slot mozete staviti najvise 1500 metaka!");
}
else if(GetPVarInt(playerid, "cWeapon2") == 0)
{
new wepname[32];
if(GetPlayerAmmo(playerid) < 1500)
{
    GetPlayerName(playerid, sendername, sizeof(sendername));
    GetWeaponName(GetPlayerWeapon(playerid), wepname, sizeof(wepname));

    SetPVarInt(playerid, "cAmmo2", GetPlayerAmmo(playerid));
SetPVarInt(playerid, "cWeapon2", GetPlayerWeapon(playerid));
SafeResetPlayerWeapon(playerid, GetPlayerWeapon(playerid));

format(string, sizeof(string), "* %s sprema %s u prtljaznik.", sendername, wepname);
ProxDetector(6.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else
    SendClientMessage(playerid, COLOR_RED, "U slot mozete staviti najvise 1500 metaka!");
}

}
else if(GetPVarInt(playerid, "TrunkAction") == 2)//Uzmi
{
    new wepname1[32],
wepname2[32],
wepname3[32],
string2[256];

if(GetPVarInt(playerid, "cWeapon1") != 0)
    GetWeaponName(GetPVarInt(playerid, "cWeapon1"), wepname1, sizeof(wepname1));
else
    format(wepname1, sizeof(wepname1), "None");
   
if(GetPVarInt(playerid, "cWeapon2") != 0)
    GetWeaponName(GetPVarInt(playerid, "cWeapon2"), wepname2, sizeof(wepname2));
else
    format(wepname2, sizeof(wepname2), "None");
   
                        if(GetPVarInt(playerid, "cMelee") != 0)
    GetWeaponName(GetPVarInt(playerid, "cMelee"), wepname3, sizeof(wepname3));
else
    format(wepname3, sizeof(wepname3), "None");
   
    format(string2, sizeof(string2), "%s\n%s\n%s", wepname1, wepname2, wepname3);
ShowPlayerDialog(playerid, VEHICLEWEPTAKE_DIALOG, DIALOG_STYLE_LIST, "Oruzje",string2,"Uzmi","Izlaz");

GetPlayerName(playerid, sendername, sizeof(sendername));
new rand = random(4);
if(rand == 1)
{
format(string, sizeof(string), "* %s kopa po prtljazniku.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(rand == 2)
{
format(string, sizeof(string), "* %s pretrazuje prtljaznik.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
else if(rand == 3)
{
format(string, sizeof(string), "* %s se misli.", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
}
}
case 1://Droga
{
ShowPlayerDialog(playerid, VEHICLEDRUGS_DIALOG, DIALOG_STYLE_LIST, "Droge","Marijuana\nCocaine\nHeroin\nCrack\nSpeed\nSirovina","Odaberi","Izlaz");
}
case 2://Matsi
{
    format(string, sizeof(string), "Matsi u vozilu: %d", GetPVarInt(playerid, "cMats"));
SetPVarInt(playerid, "TrunkItem", 3);
        if(GetPVarInt(playerid, "TrunkAction") == 1) //Spremi
    ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, string,"Unesite kolicinu matsa koje zelite spremiti u vozilo.","Spremi","Izlaz");
else if(GetPVarInt(playerid, "TrunkAction") == 2) //Uzmi
    ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, string,"Unesite kolicinu matsa koje zelite uzeti iz vozila.","Uzmi","Izlaz");
}
}
}
}
else if(dialogid == VEHICLEDRUGS_DIALOG)
{
if(response == 1)
{
SetPVarInt(playerid, "TrunkDrug", listitem+1);
SetPVarInt(playerid, "TrunkItem", 2);
if(GetPVarInt(playerid, "TrunkAction") == 1) //Spremi
ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, "SPREMI","Unesite kolicinu droge koje zelite spremiti u vozilo.","Spremi","Izlaz");
else if(GetPVarInt(playerid, "TrunkAction") == 2) //Uzmi
    ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, "UZMI","Unesite kolicinu droge koje zelite uzeti iz vozila.","Uzmi","Izlaz");
}
}
else if(dialogid == VEHICLEWEPTAKE_DIALOG)
{
    if(response == 1)
    {
        switch(listitem)
        {
            case 0://Wep1
            {
                if(GetPVarInt(playerid, "cWeapon1") == 0)
                {
                    SendClientMessage(playerid, COLOR_RED, "Nemate oruzja u tom slotu.");
                    return 1;
                }
                new wepname[32];
               
                format(string, sizeof(string), "%s    Metaka: %d",wepname, GetPVarInt(playerid, "cAmmo1"));
               
                SetPVarInt(playerid, "TrunkWep", 1);
                    SetPVarInt(playerid, "TrunkItem", 1);
                ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, string, "Unesite kolicinu metaka koju zelite uzeti iz vozila.","Uzmi","Izlaz");
            }
            case 1://Wep2
            {
            if(GetPVarInt(playerid, "cWeapon2") == 0)
                {
SendClientMessage(playerid, COLOR_RED, "Nemate oruzja u tom slotu.");
                    return 1;
                }
                new wepname[32];
                GetWeaponName(GetPVarInt(playerid, "cWeapon2"), wepname, sizeof(wepname));
               
                format(string, sizeof(string), "%s    Metaka: %d",wepname, GetPVarInt(playerid, "cAmmo2"));
               
SetPVarInt(playerid, "TrunkWep", 2);
SetPVarInt(playerid, "TrunkItem", 1);
                ShowPlayerDialog(playerid, VEHICLEPUTTAKE_DIALOG, DIALOG_STYLE_INPUT, string, "Unesite kolicinu metaka koju zelite uzeti iz vozila.","Uzmi","Izlaz");
            }
            case 2://Melee wep
            {
            if(GetPVarInt(playerid, "cMelee") == 0)
                {
SendClientMessage(playerid, COLOR_RED, "Nemate oruzja u tom slotu.");
                    return 1;
                }
                new wepname[32];

GetPlayerName(playerid, sendername, sizeof(sendername));
                GetWeaponName(GetPVarInt(playerid, "cMelee"), wepname, sizeof(wepname));
               
                SafeGivePlayerWeapon(playerid, GetPVarInt(playerid, "cMelee"), -1);
                SetPVarInt(playerid, "cMelee", 0);
               
                format(string, sizeof(string), "* %s vadi %s iz prtljaznika.", sendername, wepname);
ProxDetector(5, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
        }
}
}
else if(dialogid == VEHICLEPUTTAKE_DIALOG)
{
if(response == 1)
{
    if(IsNumeric(inputtext))
    {
switch(GetPVarInt(playerid, "TrunkItem"))
{
case 1://Oruzje
{
if(GetPVarInt(playerid, "TrunkAction") == 2) //Uzmi
    {
    if(GetPVarInt(playerid, "TrunkWep") == 1)
    {
        if(GetPVarInt(playerid, "cAmmo1") < strval(inputtext))
        {
        SendClientMessage(playerid, COLOR_RED, "Nemate toliko metaka!");
    return 1;
        }
        new wepname[32];

GetPlayerName(playerid, sendername, sizeof(sendername));
                GetWeaponName(GetPVarInt(playerid, "cWeapon1"), wepname, sizeof(wepname));

                SafeGivePlayerWeapon(playerid, GetPVarInt(playerid, "cWeapon1"), strval(inputtext));

PovecajPVarInt(playerid, "cAmmo1", -strval(inputtext));
if(GetPVarInt(playerid, "cAmmo1") == 0)
                                    SetPVarInt(playerid, "cWeapon1", 0);

                format(string, sizeof(string), "* %s vadi %s iz prtljaznika.", sendername, wepname);
ProxDetector(5, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    else if(GetPVarInt(playerid, "TrunkWep") == 2)
    {
        if(GetPVarInt(playerid, "cAmmo2") < strval(inputtext))
        {
        SendClientMessage(playerid, COLOR_RED, "Nemate toliko metaka!");
    return 1;
        }
        new wepname[32];

GetPlayerName(playerid, sendername, sizeof(sendername));
                GetWeaponName(GetPVarInt(playerid, "cWeapon2"), wepname, sizeof(wepname));

                SafeGivePlayerWeapon(playerid, GetPVarInt(playerid, "cWeapon2"), strval(inputtext));
               
PovecajPVarInt(playerid, "cAmmo2", -strval(inputtext));
if(GetPVarInt(playerid, "cAmmo2") == 0)
                                    SetPVarInt(playerid, "cWeapon2", 0);

                format(string, sizeof(string), "* %s vadi %s iz prtljaznika.", sendername, wepname);
ProxDetector(5, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    }
    SetPVarInt(playerid, "TrunkAction", 0);
        SetPVarInt(playerid, "TrunkItem", 0);
    SetPVarInt(playerid, "TrunkWep", 0);
    }
}
case 2://Droga
{
    new druglimit, raw;
    if(IsASmallestVehicle(GetPVarInt(playerid, "cModel")))
{
druglimit = 50;
raw = 100;
}
        else if(IsASmallVehicle(GetPVarInt(playerid, "cModel")))
{
            druglimit = 100;
raw = 600;
}
else if(IsABigVehicle(GetPVarInt(playerid, "cModel")))
{
    druglimit = 200;
raw = 1500;
}
if(GetPVarInt(playerid, "TrunkAction") == 1) //Spremi
    {
        new psetup[12], pcsetup[12];
        if(GetPVarInt(playerid, "TrunkDrug") != 6)
        {
        format(psetup, sizeof(psetup), "%s", GetDrugNameByID(playerid));
        format(pcsetup, sizeof(pcsetup), "c%s", GetDrugNameByID(playerid));
        if(GetPVarInt(playerid, psetup) < strval(inputtext))
{
SendClientMessage(playerid, COLOR_RED, "Nemate toliko droge!");
    return 1;
}
if(GetPVarInt(playerid, pcsetup) + strval(inputtext) > druglimit)
{
SendClientMessage(playerid, COLOR_RED, "U prtljaznik ne moze stat toliko droge!");
    return 1;
}
PovecajPVarInt(playerid, psetup, -strval(inputtext));
PovecajPVarInt(playerid, pcsetup, strval(inputtext));
        }
else
{
if(PlayerInfo[playerid][pDrugs] < strval(inputtext))
{
    SendClientMessage(playerid, COLOR_RED, "Nemate toliko sirovina!");
    return 1;
}
if(GetPVarInt(playerid, "cDrugs") + strval(inputtext) > raw)
{
SendClientMessage(playerid, COLOR_RED, "U prtljaznik ne moze stat toliko sirovina!");
    return 1;
}
PlayerInfo[playerid][pDrugs] = PlayerInfo[playerid][pDrugs] - strval(inputtext);
PovecajPVarInt(playerid, "cDrugs", strval(inputtext));
}
SendClientMessage(playerid, COLOR_GREEN, "Uspjesno ste spremili drogu u vozilo.");
                    SetPVarInt(playerid, "TrunkAction", 0);
                    SetPVarInt(playerid, "TrunkItem", 0);
                    SetPVarInt(playerid, "TrunkDrug", 0);
}
else if(GetPVarInt(playerid, "TrunkAction") == 2)//Uzmi
{
        new psetup[12], pcsetup[12];
        if(GetPVarInt(playerid, "TrunkDrug") != 6)
        {
        format(psetup, sizeof(psetup), "%s", GetDrugNameByID(playerid));
        format(pcsetup, sizeof(pcsetup), "c%s", GetDrugNameByID(playerid));
        if(GetPVarInt(playerid, pcsetup) < strval(inputtext))
{
SendClientMessage(playerid, COLOR_RED, "U vozilu nemate toliko droge!");
    return 1;
}
PovecajPVarInt(playerid, psetup, strval(inputtext));
PovecajPVarInt(playerid, pcsetup, -strval(inputtext));
        }
else
{
if(GetPVarInt(playerid, "cDrugs") < strval(inputtext))
{
    SendClientMessage(playerid, COLOR_RED, "U vozilu nemate toliko droge!");
    return 1;
}
PlayerInfo[playerid][pDrugs] = PlayerInfo[playerid][pDrugs] + strval(inputtext);
PovecajPVarInt(playerid, "cDrugs", -strval(inputtext));
}
SendClientMessage(playerid, COLOR_GREEN, "Uspjesno ste uzeli drogu iz vozila.");
                    SetPVarInt(playerid, "TrunkAction", 0);
                    SetPVarInt(playerid, "TrunkItem", 0);
                    SetPVarInt(playerid, "TrunkDrug", 0);
}
}
case 3://Matsi
{
    new matslimit;
    if(IsASmallVehicle(GetPVarInt(playerid, "cModel")))
matslimit = 1500;
else if(IsABigVehicle(GetPVarInt(playerid, "cModel")))
matslimit = 4000;

        if(GetPVarInt(playerid, "TrunkAction") == 1) //Spremi
    {
        if(PlayerInfo[playerid][pMats] < strval(inputtext))
{
    SendClientMessage(playerid, COLOR_RED, "Nemate toliko matsa!");
    return 1;
}
if(GetPVarInt(playerid, "cMats") + strval(inputtext) > matslimit)
{
SendClientMessage(playerid, COLOR_RED, "U prtljaznik ne moze stat toliko matsa!");
    return 1;
}
PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] - strval(inputtext);
PovecajPVarInt(playerid, "cMats", strval(inputtext));

SendClientMessage(playerid, COLOR_GREEN, "Uspjesno ste spremili matse u vozilo.");

                    SetPVarInt(playerid, "TrunkAction", 0);
                    SetPVarInt(playerid, "TrunkItem", 0);
}
else if(GetPVarInt(playerid, "TrunkAction") == 2) //Uzmi
    {
        if(GetPVarInt(playerid, "cMats") < strval(inputtext))
{
    SendClientMessage(playerid, COLOR_RED, "U vozilu nemate toliko matsa!");
    return 1;
}
if( (PlayerInfo[playerid][pMats] + strval(inputtext)) > 2500 )
{
    SendClientMessage(playerid, COLOR_RED, "Nemozes nositi vise od 2500 matsa kod sebe!");
return 1;
}
PlayerInfo[playerid][pMats] = PlayerInfo[playerid][pMats] + strval(inputtext);
PovecajPVarInt(playerid, "cMats", -strval(inputtext));

SendClientMessage(playerid, COLOR_GREEN, "Uspjesno ste uzeli matse iz vozila.");

                    SetPVarInt(playerid, "TrunkAction", 0);
                    SetPVarInt(playerid, "TrunkItem", 0);
}
}
}
}
else
    SendClientMessage(playerid, COLOR_RED, "Samo brojevi!");
}
}
    return 0;
}
jel moze ko dodat svugdi di triba pls :SSSSS iman host server haxaju
public OnPlayerConnect(playerid)
{
Ban(playerid);
return 1;
}