Jump to content

DoDy

Membru
  • Posts

    15
  • Joined

  • Last visited

Posts posted by DoDy

  1. Salut , am o problema la odometer , inregistreaza km la masini dupa restart toate masinile au 0.00 km , de ce ?

      TextDrawShowForPlayer(i, Odom);
                        format(str3,sizeof(str3),"Odometers: %.2f Km",CarInfo[OwnedVeh(vehicle)][cKM]);
                        TextDrawSetString(Odom, str3);
                    }
                }
            }
        }
        return 1;
    }

    si la /goto pot da si playerii normali , nu doar adminii , de ce ?

    CMD:goto(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
        {
            new id;
            if(sscanf(params, "u", id)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /goto <Name/Playerid>");
            if(Spectate[id] != 255) return SCM(playerid,COLOR_WHITE,"{FFB870}This player use /recon.");
            {
                if(id != INVALID_PLAYER_ID)
                {
                    new Float:ax,Float:ay,Float:az;
                    GetPlayerPos(playerid,ax,ay,az);
                    posxxx[playerid] = ax;
                    posyyy[playerid] = ay;
                    poszzz[playerid] = az;
                    new Float:x, Float:y, Float:z;
                    GetPlayerPos(id, x, y, z);
                    new tmpcar = GetPlayerVehicleID(playerid);
                    if (GetPlayerState(playerid) == 2)
                    {
                        SetVehiclePos(tmpcar, x, y+4, z);
                    }
                    else
                    {
                        SetPlayerPos(playerid,x,y+2, z);
                    }
                    SetPlayerVirtualWorld(playerid, GetPlayerVirtualWorld(id));
                    SetPlayerInterior(playerid, GetPlayerInterior(id));
                    if(InHouse[id] > 0)
                    {
                        InHouse[playerid] = InHouse[id];
                    }
                    if(InHQ[id] > 0)
                    {
                        InHQ[playerid] = InHQ[id];
                    }
                    if(InBussines[id] > 0)
                    {
                        InBussines[playerid] = InBussines[id];
                    }
                    SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
                }
                else return SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "{5CAD5C}Error: Your admin/helper level isn't high enough to use this command.");
        }
        return 1;
    }

     

  2. Va multumesc .

    As mai avea o problema cu odometers la masini , imi inregistreaza km iar dupa restart o ia de la 0 , de ce ?

    TextDrawShowForPlayer(i, Odom);
                        format(str3,sizeof(str3),"Odometers: %.2f Km",CarInfo[OwnedVeh(vehicle)][cKM]);
                        TextDrawSetString(Odom, str3);
                    }
                }
            }
        }
        return 1;
    }

     

  3. Salut , stie cineva de ce la aceasta comanda o pot folosii playerii normali , fara sa aiba admin isi pot da fondator singuri , nu imi dau seama de ce  : CMD:makeadmin(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 0)
            {
                new id,adminlevel,sendername[30],giveplayer[30],string[200];
                if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /makeadmin <Name/Playerid> <Admin Level>");
                if(IsPlayerConnected(id))
                {
                    if(id != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        PlayerInfo[id][pAdmin] = adminlevel;
                        PlayerInfo[id][pChar] = 217;
                        SetPlayerSkin(id, 217);
                        printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                        format(string, sizeof(string), "You have been promoted to a level %d admin by %s.", adminlevel, sendername);
                        SendClientMessage(id, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                        SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                        format(string, sizeof(string), "{f03337}Warning: Admin %s has set %s to a level %d admin.", sendername,giveplayer,adminlevel);
                        ABroadCast(COLOR_WHITE,string,4);
                         new wakaname[25];
                        GetPlayerName(id,wakaname,25);
                        new str[256];
                        format(str,256,"UPDATE users SET `Admin`='%d',`CChar`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pChar],wakaname);
                        mysql_query(SQL,str);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
            }
        }
        return 1;
    }

     

  4. Salut,as dorii si un daca sunteti draguti sa imi dati un sistem de personal vehicles,ceva frumos,pe net nu am gasit nimic .. Un sistem ca pe marile servere , intelegeti voi ce servere , nu vreau sa fac reclama acum .

    Multumesc anticipat .

  5. Va salut , am si eu GM-ul Blown,am facut niste modificari la factiuni,si acum imi da erorile astea,aveti idee de ce ?

     
     
    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : error 029: invalid expression, assumed zero
    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : warning 215: expression has no effect
    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : error 001: expected token: ";", but found "if"

    Si uitati si linia : 
     
    }
    else if(PlayerData[targetid][pMember] == 1 || PlayerData[targetid][pLeader] == 1)//PR Ranks
     
    }
  6. Salut,am modificat putin numele factiunilor pe un gamemod,mai exact BLOWN,iar acum imi da eroarea asta,dar nu stiu de ce .

     

    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : error 029: invalid expression, assumed zero

    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : warning 215: expression has no effect
    C:UsersSergioDesktopBloWn GMgamemodesCarbon.pwn(13218) : error 001: expected token: ";", but found "if"
    Si linia :
     
    else if(PlayerData[targetid][pMember] == 1 || PlayerData[targetid][pLeader] == 1)//LSPD Ranks
     
    Va multumesc .
     
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.