Jump to content



HGZ.RO - Mesaj destinat utilizatorilor neautentificați
Acest mesaj apare doar dacă nu ești logat în cont. Vezi opțiunile de mai jos:
Logare cont Cont nou

Toggle shoutbox Chat HGZ-ROMANIA

@  JoNy : (19 October 2017 - 03:16 PM) salut !
@  Lolecs1232 : (19 October 2017 - 10:32 AM) @sTrkissfm asa sefule !
@  Lolecs1232 : (19 October 2017 - 10:31 AM) sal
@  bLooD : (19 October 2017 - 10:15 AM) Pune*
@  bLooD : (19 October 2017 - 10:15 AM) Se punr inapoi pe picioare?
@  sTrkissfm : (18 October 2017 - 03:48 PM) Caut Moderatorii si Global Moderatorii
@  sTrkissfm : (18 October 2017 - 03:48 PM) Inca putin si pun totul la punct.
@  MarioGeorges... : (18 October 2017 - 11:39 AM) @r0YaL shht
@  r0YaL : (18 October 2017 - 11:19 AM) 8200 users, dublu precum erau acum 2 luni. Again, wow. Comunitatea s-a dezvoltat exagerat, cand eram eu, fondatorii fondatori, acum ceo, wow!
@  r0YaL : (18 October 2017 - 11:17 AM) Wow, cate schimbari, cam putine dar merg, membrii noi, staff, tot ala dar totusi, wow
@  MarioGeorges... : (18 October 2017 - 10:46 AM) sall
@  Lolecs1232 : (18 October 2017 - 09:14 AM) sal
@  bLooD : (16 October 2017 - 05:12 PM) Nush, de ce?
@  sTrkissfm : (16 October 2017 - 12:52 PM) Mai are o luna pana in 1.
@  Lolecs1232 : (16 October 2017 - 12:24 PM) ohoo vreo 2
@  sTrkissfm : (16 October 2017 - 11:49 AM) BLONDU DE CATE LUNI AI ADMINISTRATOR
@  Lolecs1232 : (16 October 2017 - 11:12 AM) sal]
@  Zoookooo : (15 October 2017 - 07:17 PM) vreau si eu helper
@  Zoookooo : (15 October 2017 - 07:11 PM) salut as vrea si eu helper sunt Zoko lider taxi ls
@  Lolecs1232 : (15 October 2017 - 04:06 PM) buna seara

Photo

Comenzi . ( Scripting ). Partea I


  • This topic is locked This topic is locked
1 reply to this topic

#1
Ramjex

Ramjex

    Members

  • PipPipPip
  •   Group:
    Members
  •   Posts:
    83
  •   Member Number:
    21
  •   Joined:
    11-March 17
  •   Reputation:
    16
    • Salutare HGZ. Astazi va voi da cateva comenzi scriptate de mine in pawno. Imi puteti lasa un reply cu alte comenzi vrute de voi, pareri, etc..
    •  
    •  
    •  
    • CMD:desync(playerid, params[])
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • SCM(playerid, -1, "Possibly players with desync:");
    • foreach(Player, i)
    • {
    • if(GetPlayerPing(i) >= 200)
    • {
    • format(szMessage, 256, "Name: %s - Ping: %d", GetName(i), GetPlayerPing(i));
    • SCM(playerid, COLOR_FRED, szMessage);
    • }
    • }
    • }
    • return 1;
    • }

     

    Comenzi pentru report-uri ca admin.

     

     

    • CMD:ar(playerid, params[])
    • {
    • new id;
    • if(sscanf(params, "u", id)) return SendUsage(playerid, "/ar [playerid]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[id][pReported] == 1)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost primit si este in curs de rezolvare.");
    • format(szMessage, sizeof(szMessage), "(/ar) %s has accepted %s's report.",GetName(playerid),GetName(id));
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[playerid][pReportAccepted] = id;
    • playerVariables[id][pReported] = 0;
    • playerVariables[id][pReportAccepted2] = playerid;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:dr(playerid, params[])
    • {
    • new id;
    • if(sscanf(params, "u", id)) return SendUsage(playerid, "/dr [playerid]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[id][pReported] == 1)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost sters.");
    • format(szMessage, sizeof(szMessage), "(/dr) %s has deleted %s's report.",GetName(playerid), GetName(id));
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[id][pReported] = 0;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:cr(playerid, params[])
    • {
    • new id, message[128];
    • if(sscanf(params, "us[128]", id, message)) return SendUsage(playerid, "/cr [playerid] [text]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • if(playerVariables[playerid][pReportAccepted] == id)
    • {
    • SCM(id, COLOR_ATTACK, "Reportul tau a fost rezolvat.");
    • format(szMessage, 256, "Admin %s: %s", GetName(playerid), message);
    • SCM(id, COLOR_ATTACK, szMessage);
    • format(szMessage, sizeof(szMessage), "(/cr) %s -> %s: %s",GetName(playerid), GetName(id),message);
    • submitToHelpersAndAdmins(szMessage, COLOR_FRED);
    • playerVariables[playerid][pReportAccepted] = -1;
    • playerVariables[id][pReportAccepted2] = -1;
    • }
    • }
    • }
    • return 1;
    • }
    • CMD:x(playerid, params[])
    • {
    • new id, message[128];
    • if(sscanf(params, "s[128]", message)) return SendUsage(playerid, "/x [text]");
    • {
    • if(playerVariables[playerid][pAdminLevel] >= 1 || playerVariables[playerid][pHelper] >= 1)
    • {
    • id = playerVariables[playerid][pReportAccepted];
    • if(id >= 0)
    • {
    • format(szMessage, 256, "(/x) Admin %s: %s", GetName(playerid), message);
    • SCM(id, COLOR_ATTACK, szMessage);
    • SCM(playerid, COLOR_ATTACK, szMessage);
    • }
    • }
    • else
    • {
    • new id2 = playerVariables[playerid][pReportAccepted2];
    • if(id2 >= 0)
    • {
    • format(szMessage, 256, "(/x) Player %s: %s", GetName(playerid), message);
    • SCM(id2, COLOR_ATTACK, szMessage);
    • SCM(playerid, COLOR_ATTACK, szMessage);
    • }
    • }
    • }
    • return 1;
    • }

     

    Si ultima comanda. O comanda pentru a muta un vehicul unei factiuni.

     

    • CMD:vmove(playerid, params[]) {
    • if(playerVariables[playerid][pAdminLevel] >= 7) {
    •    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You must be inside the vehicle that you wish to move.");
    •  
    • new
    • string[42];
    •  
    •         for(new x = 0; x < MAX_VEHICLES; x++) {
    •             if(vehicleVariables[x][vVehicleScriptID] == GetPlayerVehicleID(playerid)) {
    •  
    •                 GetVehiclePos(x, vehicleVariables[x][vVehiclePosition][0], vehicleVariables[x][vVehiclePosition][1], vehicleVariables[x][vVehiclePosition][2]);
    • GetVehicleZAngle(x, vehicleVariables[x][vVehicleRotation]);
    •  
    • DestroyVehicle(vehicleVariables[x][vVehicleScriptID]);
    • vehicleVariables[x][vVehicleScriptID] = CreateVehicle(vehicleVariables[x][vVehicleModelID], vehicleVariables[x][vVehiclePosition][0], vehicleVariables[x][vVehiclePosition][1], vehicleVariables[x][vVehiclePosition][2], vehicleVariables[x][vVehicleRotation], vehicleVariables[x][vVehicleColour][0], vehicleVariables[x][vVehicleColour][1], 60000);
    • PutPlayerInVehicle(playerid, vehicleVariables[x][vVehicleScriptID], 0);
    •  
    •                 saveVehicle(x);
    •  
    • format(string, sizeof(string), "You have successfully moved vehicle %d.", x);
    • SendClientMessage(playerid, COLOR_WHITE, string);
    • return 1;
    • }
    •         }
    • }
    • else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
    • return 1;
    • }

    • KmtWES, Cxsgvodo, FdrvUnwig and 5 others like this

    ----=====----=====----=====----


    Posted Image




    Posted Image


    ----=====----=====----=====----


    #2
    niku_tp7

    niku_tp7

      Membru

    • PipPipPip
  •   Group:
    Members
  •   Posts:
    340
  •   Member Number:
    1075
  •   Joined:
    26-May 17
  •   Reputation:
    26
  • Multumim pentru ajutor.


    <p><span style="color:rgb(171,171,167);"><span style="font-family:Tahoma;"><span style="font-size:12px;"><span style="background-color:rgb(50,50,50);"><span style="color:rgb(0,255,0);"><span style="font-family:'comic sans ms';"><span style="font-size:24px;">Semant:NiKu_Tp7(Admin1337) pe pile.</span></span></span></span></span></span></span><span style="color:rgb(171,171,167);"><span style="font-family:Tahoma;"><span style="font-size:12px;"><span style="background-color:rgb(50,50,50);"><span style="color:rgb(0,255,0);"><span style="font-family:'comic sans ms';"><span style="font-size:24px;">Real.HgZ.Ro Cel mai tare server</span></span></span></span></span></span></span><span style="color:rgb(171,171,167);"><span style="font-family:Tahoma;"><span style="font-size:12px;"><span style="background-color:rgb(50,50,50);"><span style="color:rgb(0,255,0);"><span style="font-family:'comic sans ms';"><span style="font-size:24px;">Scripter Real.HgZ.Ro Respect!</span></span></span></span></span></span></span><span style="color:rgb(171,171,167);"><span style="font-family:Tahoma;"><span style="font-size:12px;"><span style="background-color:rgb(50,50,50);"><span style="color:rgb(0,255,0);"><span style="font-family:'comic sans ms';"><span style="font-size:24px;">Cel mai tare Forum.<3</span></span></span></span></span></span></span><p>Posted Image</p>