Hashtag.Purda 6link=topic=125455.msg873634#msg873634 wrote on October 3, 2018, 10:26 pm:
U potpunosti se slazem ! 🙂
Ajde Tomislave ne seri zao mi sto vas Srbi nisu pobili u Vukovaru
Naš forum je uspješno migriran na novu platformu. Svi vaši podaci, računi i sadržaj su prebačeni na GTABLKN.
Prevuci gore ili dole za pozicioniranje
Izgleda da bc-cod2 trenutno ne radi ništa
Postovi i teme koje je kreirao bc-cod2
YCMD:proveri(playerid, params[], help)
{
#pragma unused help
new id;
if(UlogovanProvera == 0) return SCM(playerid,-1,"X:RP| "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 2) return SCM(playerid,-1,""SPLAVA"[X:RP] "SIVA"Samo Admin Level 2+!");
if(AdminDuty == 0) return SCM(playerid,-1,""CRVENA"[X:RP] "SIVA"Morate biti na admin duznosti!");
if(sscanf(params, "u", id)) return SCM(playerid,-1,""srv_boja""BELA"EG: "srv_boja" /proveri ");
if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""srv_boja""BELA"EG: "srv_boja" Igrac nije na serveru!");
CheckShowStats(playerid, id);
return 1
}
stock CheckShowStats(playerid, id)
{
if(IsPlayerConnected(id))
{
if(GetPVarInt(playerid, "StatsPrikazan") == 0)
{
for(new s = 0; s < 36; s++)
{
PlayerTextDrawShow(playerid, StatsTD);
}
////////////////////////////////////////////////////////////////////////
new drank;
if(PlayerInfo == 1) { drank = "1"; }
else if(PlayerInfo == 2) { drank = "2"; }
else if(PlayerInfo == 3) { drank = "3"; }
else if(PlayerInfo == 4) { drank = "4"; }
else if(PlayerInfo == 5) { drank = "5"; }
new promoter;
if(PlayerInfo == 1) { promoter = "Da"; }
else if(PlayerInfo == 0) { promoter = "Ne"; }
else { drank = "Nema"; }
new sat,minuta,sekunda,godina, mjesec, dan;
getdate(godina, mjesec, dan);
gettime(sat, minuta, sekunda);
new playerskin = GetPlayerSkin(id);
new str, str3, vreme, satt;
PlayerTextDrawSetPreviewModel(playerid, StatsTD, PlayerInfo);
PlayerTextDrawShow(playerid, StatsTD);
format(str3, sizeof(str3),"%s",GetName(id));
PlayerTextDrawSetString(playerid, StatsTD, str3);
format(str, sizeof(str), "Level:_%d~n~Respekti:_%d/%d~n~Sati_Igranja:_%d~n~Vip_level:_%s~n~Upozorenja:_%d~n~Trazeni_level:_%d~n~PayDay:_%d/45~n~Ubistava:_%d~n~Smrti:_%d~n~Skin:_%d~n~Promoter:_%d",
PlayerInfo, PlayerInfo, (PlayerInfo * 2) + 2, PlayerInfo, drank, PlayerInfo, PlayerInfo, PlayerInfo, PlayerInfo, PlayerInfo, playerskin, promoter);
PlayerTextDrawSetString(playerid, StatsTD, str);
format(vreme, sizeof(vreme),"%d/%d/%d",dan,mjesec,godina);
PlayerTextDrawSetString(playerid, StatsTD, vreme);
format(satt, sizeof(satt),"%d:%d:%d",sat, minuta, sekunda);
PlayerTextDrawSetString(playerid, StatsTD, satt);
SetPVarInt(playerid, "StatsPrikazan", 1);
SelectTextDraw(playerid, 0xDABB3EAA);
}
else if(GetPVarInt(playerid, "StatsPrikazan") == 1)
{
for(new s = 0; s < 36; s++)
{
PlayerTextDrawHide(playerid, StatsTD);
}
SetPVarInt(playerid, "StatsPrikazan", 0);
CancelSelectTextDraw(playerid);
}
}
return 1;
}
enum preprekaInfo
{
Float:PreprekaX,
Float:PreprekaY,
Float:PreprekaZ,
PreprekaId,
};
new PreprekaInfo;PreprekaInfo = 0.0;
PreprekaInfo = 0.0;
PreprekaInfo = 0.0;
PreprekaInfo= -1;//prepreka nije kreiranaif(PreprekaInfo!=-1)
{
DestroyDynamicObject(PreprekaInfo); // unistava prepreku ako igrac napusti server
}COMMAND:makniprepreku(playerid, params[])
{
if(IsACop(playerid))
{
if(PreprekaInfo == -1)
{
SendClientMessage(playerid, -1,"Nemas napravljenu prepreku!");
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid, 7.0, PreprekaInfo, PreprekaInfo, PreprekaInfo))
{
SendClientMessage(playerid, -1, "Predaleko si od prepreke!");
return 1;
}
PreprekaInfo=0.0;
PreprekaInfo=0.0;
PreprekaInfo=0.0;
DestroyDynamicObject(PreprekaInfo);
PreprekaInfo=-1;
SendClientMessage(playerid, -1,"Maknuli ste prepreku.");
}
else return SendClientMessage(playerid,-1,"Niste clan Policije");
return 1;
}
COMMAND:prepreka(playerid, params[])
{
if(IsACop(playerid))
{
new vrsta;
if (sscanf(params, "d", vrsta)) SendClientMessage(playerid, -1,"/prepreka [1-Mala, 2-Srednja, 3-Velika, 4-Cunj]");
else if(vrsta < 1 || vrsta > 4) SendClientMessage(playerid, -1, "Pogresan odabir(1-4).");
else
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,-1,"Ne smijes biti u vozilu!");
return 1;
}
if(PreprekaInfo != -1)
{
SendClientMessage(playerid,-1,"Vec imas postavljenu prepreku!");
return 1;
}
new Float:pozx,Float:pozy,Float:pozz,Float:poza;
GetPlayerPos(playerid, pozx, pozy, pozz); GetPlayerFacingAngle(playerid,poza);
PreprekaInfo=pozx; PreprekaInfo=pozy; PreprekaInfo=pozz;
if(vrsta==1)
{
PreprekaInfo = CreateDynamicObject(1459, pozx,pozy,pozz-0.7, 0, 0, poza);
GameTextForPlayer( playerid,"~w~Mala prepreka ~b~postavljena!",1500,1);
}
else if(vrsta==2)
{
PreprekaInfo = CreateDynamicObject(978, pozx,pozy,pozz-0.7, 0, 0, poza);
GameTextForPlayer( playerid,"~w~Srednja prepreka ~b~postavljena!",1500,1);
}
else if(vrsta==3)
{
PreprekaInfo = CreateDynamicObject(981, pozx,pozy,pozz-0.7, 0, 0, poza);
GameTextForPlayer( playerid,"~w~Velika prepreka ~b~postavljena!",1500,1);
}
else if(vrsta==4)
{
PreprekaInfo = CreateDynamicObject(1238, pozx,pozy,pozz-0.7, 0, 0, poza);
GameTextForPlayer( playerid,"~w~Cunj ~b~postavljen!",1500,1);
}
}
}
else return SendClientMessage(playerid,-1,"Niste clan Policije");
return 1;
}
CMD:rb(playerid,params[])
{
new rb;
new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
if(!IsACop(playerid)) SCM(playerid,-1,"{07C1F5}{FFFFFF} Niste clan Policije");
else if(IsPlayerInAnyVehicle( playerid ) ) SCM(playerid,GRAD2, "Ne mozete da koristite ovu komandu dok ste u vozilu!");
else if(PlayerInfo >= 1) SCM(playerid,COLOR_GREY,"Ne mozete da koristite ovu komandu jer ste zatvoreni!");
else if(PlayerInfo < 3 ) SCM(playerid,GRAD2,"Morate da budete rank 3+ ");
else if( sscanf( params, "d", rb))
{
SCM( playerid,GRAD2, "KORISTITE: /rb ");
SCM( playerid, GRAD2, "Tipovi: 1 = Obicna blokada, 2 = Spikes, 3 = Cunj.");
}
else
{
if(rb == 1)
{
PlayerPlaySound( playerid, 1052, 0.0, 0.0, 0.0);
GetPlayerPos( playerid, plocx, plocy, plocz);
GetPlayerFacingAngle( playerid,ploca);
CreateDynamicObject(1459,plocx,plocy,plocz-0.7, 0, 0, ploca);
GameTextForPlayer( playerid,"~w~Mala blokada ~b~postavljena!",1500,1);
}
else if(rb == 2)
{
// spike
}
else if(rb == 3)
{
// cunj
}
else return SCM(playerid, -1,"Pogresan odabir!");
}
return 1;
}
public onSocketRemoteConnect( Socket:id, remote_client[], remote_clientid )
{
new ip;
get_remote_client_ip(socket, remote_clientid, ip);
printf("Konekcija %s, %d", ip, remote_clientid);
return 1;
}
public OnPlayerDisconnect(playerid)
{
printf("%d napustio", GetPVarInt(playerid, "KoristiLauncher"));
socket_close_remote_client(socket, GetPVarInt(playerid, "KoristiLauncher"));
return 1;
}
public OnPlayerConnect(playerid)
{
SetPVarInt(playerid, "KoristiLauncher", -1);
new plrIP;
new ip;
new s;
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
for(new i = 0; i < SOCKET_MAX_CONNECTIONS; i++)
{
get_remote_client_ip(socket, i, ip);
if(strcmp(plrIP,ip, true) == 0)
{
SetPVarInt(playerid, "KoristiLauncher", i);
break;
}
}
if(GetPVarInt(playerid, "KoristiLauncher") == -1)
{
SendClientMessage(0, -1,"Greska...");
}
else if(GetPVarInt(playerid, "KoristiLauncher") != -1)
{
SendClientMessage(0, -1,"Konektovan...");
format(s, 64,"Klijent %d", GetPVarInt(playerid,"KoristiLauncher"));
SendClientMessage(0, -1, s);
}
return 1;
}Nivo 3
6 / 20 otključano
Vaši poslednji dobici iskustva
Ovaj korisnik još nije napisao ništa o sebi.