-
Posts
17 -
Joined
-
Last visited
Content Type
Profiles
Forums
News
Documentation
Posts posted by Adi_5
-
-
Salut , recent am deschis comunitatea DiamondPlay.ro dar din pacate scripterul pe care l am avut nu a mai vrut sa continuam si am ramas asa,
asa ca caut un nou scripter atat pentru server cat si pentru forum/panel
Contact :ZuZu#2611 Sau PM
Multumesc pentru atentia oferita.
-
Acum 17 ore, SherKan a spus:
ai cumva in server si variabila [pLeader] ?
Da , este adaugata acea variabila.
-
Acum 16 ore, jumainkain a spus:
Daca ai gm burned, probabil ai functia IfIsACop, cauta si adaugi acolo alt pMember si pLeader si id factiune, vezi tu acolo, intelegi ce vreau sa zic
Sunt adaugate ,
function IsACop(playerid) {
new leader = PlayerInfo[playerid][pLeader], member = PlayerInfo[playerid][pMember];
if(member==1 || member==2 || member==3 || member==14) return 1;
else if(leader==1 || leader==2 || leader==3 || leader==14) return 1;
return 0; -
function SetPlayerToTeamColor(playerid) {
if(IsPlayerConnected(playerid)) {
if(IsACop(playerid) && OnDuty[playerid] == 0) return SetPlayerColor(playerid, COLOR_WHITE);
switch(PlayerInfo[playerid][pMember]) {
case 0: SetPlayerColor(playerid,COLOR_WHITE);
case 1: SetPlayerColor(playerid, 0x112ef2FF);
case 2: SetPlayerColor(playerid, 0x2b45f5FF);
case 3: SetPlayerColor(playerid, 0x01026bFF);
case 4: SetPlayerColor(playerid, 0x0CAB3CFF);
case 5: SetPlayerColor(playerid, 0x11F2F2FF);
case 6: SetPlayerColor(playerid, 0xFAD400FF);
case 7: SetPlayerColor(playerid, 0x00FF80FF);
case 8: SetPlayerColor(playerid, 0xFFFFA8FF);
case 9: SetPlayerColor(playerid, 0xFFABFCFF);
case 10: SetPlayerColor(playerid, 0xAB00FAFF);
case 11: SetPlayerColor(playerid, 0x7E3937FF);
case 12: SetPlayerColor(playerid, COLOR_YELLOW);
case 13: SetPlayerColor(playerid, 0xf86448FF);
}
}
return 1;
} -
YCMD:duty(playerid, params[], help) {
if(PlayerInfo[playerid][pGunLic] == 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu ai licenta de arme. Cauta un instructor pentru a obtine licenta.");
new house = PlayerInfo[playerid][pHouse],string[200],sendername[MAX_PLAYER_NAME];
GetPlayerName(playerid, sendername, sizeof(sendername));
if(!IsACop(playerid)) return SCM(playerid, COLOR_GREY, "Nu esti politist.");
if(PlayerInfo[playerid][pSleeping] == 1) return SCM(playerid, COLOR_LGREEN, "Eroare: Nu poti folosi aceasta comanda deoarece esti pe sleep!");
if(GetPlayerVirtualWorld(playerid) == house || IsPlayerInRangeOfPoint(playerid, 150.0, 245.8297,112.4436,1003.2188) || IsPlayerInRangeOfPoint(playerid, 150.0, 236.3031,162.9478,1003.0300)) {
if(GetPlayerInterior(playerid) != 0) {
if(OnDuty[playerid] == 0) {
if(PlayerInfo[playerid][pWantedLevel] != 0 || PlayerInfo[playerid][pJailTime] != 0) return SCM(playerid, COLOR_LGREEN, "Nu poti folosi aceasta comanda deoarece esti in jail sau ai wanted.");
format(string, sizeof(string), "%s takes some guns and a badge from his locker.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
ServerWeapon(playerid, 24, 500);
ServerWeapon(playerid, 3, 0);
ServerWeapon(playerid, 41, 500);
ServerWeapon(playerid, 29, 1000);
ServerWeapon(playerid, 31, 1000);
SetPlayerArmourEx(playerid, 99);
SetPlayerHealthEx(playerid, 99);
OnDuty[playerid] = 1;
SetPlayerSkinEx(playerid, PlayerInfo[playerid][pChar]);
SCM(playerid, -1, "You are now on duty!");
}
else if(OnDuty[playerid]==1) {
SCM(playerid, -1, "You are now off duty!");
format(string, sizeof(string), "%s puts his badge and uniform in his locker.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
OnDuty[playerid] = 0;
SetPlayerArmourEx(playerid, 0);
ResetWeapons(playerid);
SetPlayerSkinEx(playerid, 305);
NearWanted[playerid] = 0;
PlayerTextDrawHide(playerid, NearTD);
tazer[playerid] = 0;
//SCM(playerid, COLOR_LGREEN, "Optiune dezactivata!");
}
SetPlayerToTeamColor(playerid);
}
else SCM(playerid, COLOR_GREY, "You can only use this command in houses or in Police HQ.");
}
else SCM(playerid, COLOR_GREY, "You can only use this command in houses or in Police HQ.");
return 1;
} -
Salut , am facut LVPD dar nu i se pune culoarea albastra cand te pui /duty .
Cum pot sa rezolv?
-
Problema rezolvata .
-
Salut , am revenit cu o noua problema.
Am stres o masina din baza de date "Cars" si acm nu mai mere /v pe acel cont .
Cum as putea sa rezolv fara sa fiu nevoit sa rebag baza de date?
-
Ok , mersi
-
Doar atat?
-
Salut , cum as putea mari limita de case pe gm-ul Burned?
-
Caut un partener care sa se ocupe de populare , eu pot sa ma ocup doar de host.
Discord : Adi#2611
-
Adauga ma pe discord Asassin#2611
-
Adauga ma pe discord Asassin#2611 pentru o afacere
-
Am o problema cu gm ul burned , masinile personale se despawneaza automat chiar daca suntfolosite.Cum pot rezolva aceasta problema?
Caut Web developer
in Caut servicii / partener / etc.
Posted
Caut web developer pentru comunitatea DiamondPlay.Ro
Contact : ZuZu#2611
Multumesc pentru atentia oferita.