Jump to content
  • 0

Cateva intrebari.. Help


XpLoD

Question

1. Aveti idee cum as putea face o zona iar in acea zona sa pot folosi o comanda iar daca nu sunt in ea sa nu o pot folosi :D cva cu IsPlayerArena cred:-? dar nu stiu cum se face si cum sa fac rost de coordonate.

2. Am facut si eu faza cu (Admin) si (Vip) am 2 fs-uri diferite si la fiecare fs am la OnPlayerText pus (Vip) si (Admin) eh problema este ca .. daca vreau sa raspund la un reaction test nu functioneaza... si am inteles ca e normal sa nu functioneze ca am prea multe OnPLayerTexte.. (Adica multe fs) si am incercat sa'l bag Vip-ul in Admin dar deja avea buguri.. si .. aveti idee cum as putea repara chestia asta.. "Doar cei care au dupa nume (Admin) si (Vip) nu pot sa raspunda la Reaction Test. dar ceilalti (Playeri simpli) pot raspunde.

3. Aveti idee daca ar trebuii sa pun casele in GM? sa numai am bugu cu [3DTextLabel] cand dau /buy nu se schimba text-ul in cel care a cumparat'o si cand dau /sell nu se schimba in For Sale..  Oare asa va merge :-?

4. comanda /stats sa o fac in dialog .. ca numai o vreau tip Text..

dcmd_stats(playerid,params[]) {
    new string[1024], pDeaths, player1, h, m, s;
    new string1[128];
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);

    if(IsPlayerConnected(player1)) {
        TotalGameTime(player1, h, m, s);
         if(GetPVarInt(player1, "Deaths") == 0) pDeaths = 1; else pDeaths = GetPVarInt(player1, "Deaths");
        format(string1, sizeof(string1), " Stats %s  ",PlayerName2(player1));
        format(string, sizeof(string), " Player Kills: %d \n Player Deaths: %d \n Player Score: %d\n Player Ratio: %0.2f \n Player Money: $%d \n Warnings: %d \n Player Time: %d hrs %d mins %d secs\n Admin Level: %d ", PlayerInfo[player1][Kills], PlayerInfo[player1][Deaths], GetPlayerScore(player1), Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1),PlayerInfo[playerid][Warnings],
		, h, m, s,PlayerInfo[playerid][Level]);
        return ShowPlayerDialog(playerid,991,DIALOG_STYLE_MSGBOX, string1, string,"Ok","Close");
    } else return ShowPlayerDialog(playerid,990,DIALOG_STYLE_MSGBOX, "Message server", "Player Not Connected","Ok","Close");
} 
si are ceva buguri "Ratia nu prea merge.. uneori kill-urile sunt deaduri" Erorile sunt aceastea
(5244 -- 5245) : error 029: invalid expression, assumed zero
(5245) : warning 215: expression has no effect
(5245) : warning 215: expression has no effect
(5245) : warning 215: expression has no effect
(5245) : warning 215: expression has no effect
(5245) : error 001: expected token: ";", but found ")"
(5245) : error 029: invalid expression, assumed zero
(5245) : fatal error 107: too many error messages on one line

Cam asta ar fi lista :

Player Kills:

Player Deaths:

Player Score:

Player Ratio:

Player Money:

Warnings:

Player Time:

-> hrs

-> mins

-> secs

Admin Level:

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

RuNix" post="73344" timestamp="1305976800"]

2.Probabil tu folosesti SendClientMessageToAll ... foloseste SendPlayerMessageToAll

3.Crezi ca serverul are minte artificiala ? punei tu la /buy , /sell sa ii seteze alt string la casa ...

mai departe nu mai raspund ca vrei sa copiezi rss  :undecided:

2. asta folosesc

3. :-?

/stats nu seamana cu srv tau;p in niciun caz:D

iar faza cu zona am nevoie ca vreau sa fac cva:) unde sa'ti cumperi bautura.. gen Bar:D dar nu vreau cu pickup ci cu o zona.. dar nuj cum se face.

ll364l6j8dg3et84ks3w.png

Link to comment
Share on other sites

la stats:

dcmd_stats(playerid,params[]) {
    new plName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, plName, sizeof(plName));
    new string[9999], sL[50], sI[500], pDeaths, player1, h, m, s;
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);

    if(IsPlayerConnected(player1)) {
        TotalGameTime(player1, h, m, s);
        if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
        format(sL, sizeof(sL), "{fff000}+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+");
        format(sI, sizeof(sI), "{00FF19}Kills Rank: {00CEFC}%d ({FC0303}%s{00FF19})\n{00FF19}Admin Level: {00CEFC}%d\n{00FF19}Warnings: {00CEFC}%d\n{00FF19}Register Date: {00CEFC}%d\n{00FF19}Respect: {00CEFC}%d / -%d",rankid,rank,PlayerInfo[player1][Level],PlayerInfo[player1][Warnings],PlayerInfo[player1][RegisteredDate],pInfo[giveplayerid][Rp],pInfo[playerid][Rp]);
        format(string, sizeof(string),"%s\n{FC0303}%s{00FF19}'s Stats\n%s\n{00FF19}Player Kills:{00CEFC}%d\n{00FF19}Player Deaths:{00CEFC}%d\n{00FF19}Player Ratio:{00CEFC}%0.2f\n{00FF19}Player Money:{00CEFC}$%d\n{00FF19}Player Time:\n{00CEFC}%d{FC0303}*{00FF19}hrs\n{00CEFC}%d{FC0303}*{00FF19}mins\n{00CEFC}%d{FC0303}*{00FF19}secs\n\%s\n%s",sL,PlayerName2(player1),sL,PlayerInfo[player1][Kills],PlayerInfo[player1][Deaths],Float:PlayerInfo[player1][Kills]/Float:pDeaths,GetPlayerMoney(player1),h,m,s,sI,sL);
        return ShowPlayerDialog(playerid, 9999, 0, "Player Stats", string, "Ok", "");
    } else return SendClientMessage(playerid, red, "Player Not Connected!");
}

eu tiam /stats dat cum am in ladmin...:Pdar nu il mai folosesc pot sa til dau daca vrei:P

Fara reclama in semnatura!

Link to comment
Share on other sites

if(IsPlayerInRangeOfPoint(playerid, 15.0, 2695.6880, -1704.6300, 11.8438))

15.0 zona de acoperire....

si coordonatele bagi care vrei tu

http://wiki.sa-mp.com/wiki/IsPlayerInRangeOfPoint

sau cum a spus RuNix

PlayerToPoint ii cam tot aia ca si IsPlayerInRangeOfPoint

[pawn]

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)

{

new Float:oldposx, Float:oldposy, Float:oldposz;

new Float:tempposx, Float:tempposy, Float:tempposz;

GetPlayerPos(playerid, oldposx, oldposy, oldposz);

tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z);

if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))

{ return true; }

return false;

}

[/pawn]


Fara reclama in semnatura!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Similar Content

    • By AndreiSAMP2
      fatal error 111: user error: Did you do <YSI/y_hooks> instead of the required <YSI\y_hooks>?
    • By AlexCelTare
      stie cineva vreun fs sau cum sa fac sa nu se mai reseteze banii la playeri cand dau relog? va rog
    • By R4zvyy
      Ma poate ajuta cineva cum pot baga mapping in include? am facut asta
       dupaia asta 
      Si imi da eroarea  asta 
       
      ../gamemodes/systems/mapping.inc(1) : error 021: symbol already defined: "LoadMaps"
      ../gamemodes/systems/mapping.inc(27) : error 010: invalid function or declaration
      Pawn compiler 3.10.8              Copyright (c) 1997-2006, ITB CompuPhase

      2 Errors.

      Ma poate ajuta cineva va rog?
    • By Rby Robert
      Salut incerc sa conectez un panel la gm dar imi da o eroare....
      [24-Aug-2021 17:25:46 Europe/Bucharest] PHP Parse error:  syntax error, unexpected 'else' (T_ELSE), expecting end of file in /home/dtyroman/public_html/panel/inc/header.inc.php on line 7
      Nu stiu ce sa ii fac am incercat toate modele 
      daca sterg asta din panel/inc/header.inc.php
      else {
          if(Config::isAdmin(Config::getUser())) {
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0'); $get-
      >execute();
              $tickets = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0'); $get->execute
      ();
              $unban = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0'); $get-
      >execute();
              $complaints = $get->rowCount();
          } else {
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_tickets` WHERE `Status` = 0 AND `UserID` =
      ?'); $get->execute(array(Config::getUser()));
              $tickets = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_unban` WHERE `Status` = 0 AND `UserID` =
      ?'); $get->execute(array(Config::getUser()));
              $unban = $get->rowCount();
              
              $get = Config::$g_con->prepare('SELECT `ID` FROM `panel_complaints` WHERE `Status` = 0 AND `UserID`
      = ? OR `Status` = 0 AND `AccusedID` = ?'); $get->execute(array(Config::getUser(),Config::getUser()));
              $complaints = $get->rowCount();
          }
      }
      Merge dar nu pot sa ma loghez adica imi da pagina alba
       
    • By Quang Minh
      Is there any way to prevent cleo wallhack and nametag?
      I tried hiding my name but it didn't work
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • 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.