"Trebam nešto" - tema

Započeo vlado_plavsic, Avgust 16, 2012, 20:15:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

if (strcmp(cmd, "/unban", true)==0)
{
    if((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >=1337)
if(PlayerInfo[playerid][pLocked] == 0) // Auto-kick
{
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
{
        SendClientMessage(playerid, COLOR_WHITE, "Koriscenje: /unban [Ime_Prezime]");
            return 1;
}
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(giveplayer));
format(string, 256, "[ADMIN] %s je Unbano %s-a", sendername, tmp);
ABroadCast(COLOR_YELLOW,string,1);
format(string, 256, "[ADMIN] %s je Unbano %s-a", sendername, tmp);
printf(string);
format(string,sizeof(string),"%s.ini",tmp);
fremove(string);
SendClientMessage(playerid, COLOR_WHITE, "Igrac je Unbanan");
SendRconCommand(string);
SendRconCommand("reloadbans");
    GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
}
return 1;
}
izmeni varijable u svoje

CMD:arrest(playerid, params[])
{
new string[128];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cijenah, minuta, jamcevina, cijenajamcevine, razlog[128];
if(sscanf(params, "idiis[128]", cijenah, minuta, jamcevina, cijenajamcevine, razlog))
{
SCM(playerid, COLOR_GRAD2, "{168BFF}INFO: {959561} /arrest [cijena] [vrijeme (minute)] [jamcevina (0=ne 1=da)] [cijena jamcevine] [razlog]");
SCM(playerid, WHITE, "{168BFF}Razlog mora biti vazeci!");
}
else
if(IsPlayerInRangeOfPoint(playerid, 10.0, tvoje koordirnate))
{
if(IsACop(playerid))
{
if(OnDuty[playerid] == 0) SCM(playerid, COLOR_GREY, "   Nisi na duznosti!");
if(cijenah > 5000 || cijenah < 1) return SCM(playerid, GREY, "Cijena hapsenja ne moze biti preko 5000$ i ispod 1$!");
if(minuta > 31 || minuta < 6) return SCM(playerid, GREY, "Vrijeme pritvora ne moze biti preko 30 minuta i ispod 5 minuta!");
if(jamcevina < 0 || jamcevina > 1) return SCM(playerid, GREY, "Jamcevina mora biti 1(Da) ili 0 (Ne)!");
if(cijenajamcevine > 100000 || cijenajamcevine < 1) return SCM(playerid, GREY, "Cijena jamcevine mora biti izmedju 1$ i 100000$!");
new suspect = GetClosestPlayer(playerid);
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1) return SendClientMessage(playerid, COLOR_GREY, "   Igrac mora imati barem Wanted Level 1 !");
format(string, sizeof(string), "{198CC6}* Uhapsio si %s | Razlog: %s", giveplayer, razlog);
SCM(playerid, COLOR_LIGHTBLUE, string);
GivePlayerCash(suspect, -cijenah);
format(string, sizeof(string), "Uhapsio te %s ~n~ za $%d", sendername, moneys);
GameTextForPlayer(suspect, string, 5000, 5);
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{
format(string, sizeof(string), "{198CC6}Policajac %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "{198CC6}FBI Agent %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "{198CC6}Specijalac %s je uhapsio osumnjicenog %s | Razlog: {FF0E0E}%s", sendername, giveplayer, razlog);
OOCNews(COLOR_LIGHTRED, string);
}
new rand = random(sizeof(gRandomJailSpawns));
SetPlayerPos(suspect, gRandomJailSpawns[rand][0], gRandomJailSpawns[rand][1], gRandomJailSpawns[rand][2]);
PlayerInfo[suspect][pJailTime] = minuta * 60;
//SetPlayerWorldBounds(playerid, 1573.528, 1489.865, -1089.701, -1164.708);
if(jamcevina == 1)
{
JailPrice[suspect] = cijenajamcevine;
format(string, sizeof(string), "{198CC6}Pritvoren si na %d sekundi.   Jamcevina: $%d | Razlog: {FF0E0E}%s", PlayerInfo[suspect][pJailTime], JailPrice[suspect], razlog);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
else
{
    JailPrice[suspect] = 0;
format(string, sizeof(string), "{198CC6}Pritvoren si na %d sekundi.   Jamcevina: Nedostupna | Razlog: {FF0E0E}%s", PlayerInfo[suspect][pJailTime], razlog);
SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
}
PlayerInfo[suspect][pJailed] = 1;
        PlayerInfo[suspect][pArrested] += 1;
SetPlayerFree(suspect,playerid, "Uhapsen");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
WantLawyer[suspect] = 1;
}
else SendClientMessage(playerid, COLOR_GREY, "   Nema nikoga u blizini koga bi mogao uhapsiti.");
}
else SendClientMessage(playerid, COLOR_GREY, "   Nisi dio izvrsnih vlasti !");
}
else SendClientMessage(playerid, COLOR_GREY, "   Nisi kod zatvora !");
return 1;
}
izmeni varijable u svoje i dutyCMD:duty(playerid,params[])
{
        #pragma unused params
if(PlayerInfo[playerid][Duty] == 0) return PlayerInfo[playerid][Duty] = 1;
else PlayerInfo[playerid][Duty] = 0;
return true;
}

Trebam hitno tutorial kako maknuti mysql sistem spremanja na YSI sistem, hvala.
Mike Marquez | House of Rave is Trippy Place ! |

pazi, ako hoces skroz da uklonis MySQL, moras posle da obnovis opet veci deo GMa, to je previse posla veruj mi, tako da ti ja toplo preporucujem da naucis malo bolje MySQL ili da predjes na drugi GM

da, ali ne zeli mi otvoriti localhost/phpmyadmin . :S
Mike Marquez | House of Rave is Trippy Place ! |

Trebam neku filtescriptu za ono swat rope, ali neka koju radi... Znaci ono kad swat se spusta niz uze iz helica...

Trebam Komandu /switchkeys da mozes mjenjat kljuceve vozila i to samo da bude za vipove
Trazimo Mapera Koji zna sto radi,koji je ozbiljan i da mi posalje neke radove na pm i koliko je spreman vremena dnevno odvojiti na mapanje.||Nagrada 1337 Admin||


Pozz svima.
Radim na skripti GF,i imam problem sa komandom /veh.
Kada kucam /veh vozilo mi padne sa neba,ali kada pbrobam sjesti ono je kao pokvareno.
Ako moze pomoc kako rijesti ovaj problem ili link za neki veh sistem.
Probavao sam /fixveh ali nece da se popravi,unapred hvala.
Ultra Gaming Community
http://www.ultra-samp.net
SAMP IP: 5.196.112.54:7777
TS3 IP: 46.105.157.52:9996

e treba mi fs za biznise jel neko ima?

Ovako imam problem,imamo na serveru NL skriptu,i svako malo nam na neki nacin hakeri upadaju i banuju igrace.Neznamo kako to da rjesimo i neznamo u cemu je problem.Ako nam neko moze poslati link kako da rjesim taj problem,ili da se neko javi da ga rjesi.Kao nagradu imate dvije solucije [SERVER IMA OKO 40igraca ] mozete dobiti suvlasnika ili da vam platim u $$$$$. Recon nije problem jer sam ga promjenio  100 puta.

MOLIM ZA POMOCC :HINO:
Ultra Gaming Community
http://www.ultra-samp.net
SAMP IP: 5.196.112.54:7777
TS3 IP: 46.105.157.52:9996

Citat: reNNix poslato Decembar 30, 2012, 19:40:46 POSLE PODNE
if(count == 1)
{
SafeGivePlayerMoney(playerid, - price);
PlayerInfo[playerid][pWantedDeaths] += 1;
PlayerInfo[playerid][pJailed] = 1;
    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(600);
    format(string, sizeof(string), "* U zatvoru si na %d Sekundi i izgubio si $%d zbog biježanja ili pucanja na policiju.", PlayerInfo[playerid][pJailTime], price);
    SendClientMessage(playerid, COLOR_LIGHTRED, string);
    WantedPoints[playerid] = 0;
WantedLevel[playerid] = 0;
ShowForPlayer(playerid, Textdraw1[playerid]);
}

C:\Users\david\Desktop\LARP\gamemodes\larp.pwn(15248) : error 017: undefined symbol "ShowForPlayer"

Moze pomoc pls!! ;D

Umjesto
ShowForPlayer(playerid, Textdraw1[playerid]);
stavi
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);



Citat: Blaeks poslato Januar 01, 2013, 06:14:21 PRE PODNE
Hacker: koju skriptu koristis?


NL (Northoon Light)
Ultra Gaming Community
http://www.ultra-samp.net
SAMP IP: 5.196.112.54:7777
TS3 IP: 46.105.157.52:9996

na vrh forward SejvanjeIgraca(); na kraj skripte public SejvanjeIgraca()
{
foreach(Player, i)
{
OnPlayerUpdate(i);
}
}
i pod ongamemodeinit SetTimer("SejvanjeIgraca",600000,true);