Quantcast
Channel: SA-MP Forums
Viewing all 18226 articles
Browse latest View live

[Ajuda] Receber a distancia de um determinado ponto CORRETAMENTE

$
0
0
Gostaria de saber se alguem sabe criar uma stock que me retorne os valores corretamente da distância do jogador até uma coordenada, já que o mesmo recebe com muitos números... mesmo estando a 3 metros de distancia é exibido mais 5 números ficando (3.00000), quero um meio que fique claro "(3M)" .. pode ser retornado somente o número, esse M, ou Metros eu adicionarei formatando o texto.. espero que tenha entendido

e eu ja uso GetPlayerDistanceFromPoint

[Ajuda] error: 017: undefined symbol "CreateObject"

$
0
0
eu estou tentando adicionar um objeto na GM que eu estou produzindo e quando coloco o comando CreateObject da erro
demonstração :
HTML Code:

(176) : error: 017: undefined symbol "CreateObject"
o comando é esse:
HTML Code:

CreateObject(1538, -2170.44824, 639.94098, 1051.35339, 0.0, 0.0, 0.0, 0.0);
          CreateObject(1538, -2171.92969, 639.94098, 1051.35339, 0.0, 0.0, 0.0, 0.0);

quem puder me ajudar agradeço

easyest way forsave & load weapons in db

$
0
0
Guys Im trying to save and load the weapons in MySQL, I was thinking for...
when the player exit from the server, if he have any weapon the script will take the datas of any slots,
and if in the weapon data there is any id the code will save the slot weapon id and ammo in the database, on enter and exit from the server, only thing that the code should to do, is duplicate the data only if the slot in the db and of data player are the same, for now Im blocked and I don't have any idea...can anyone help me?

[Pedido] Alguem teria sistema de criar casa | in game | ?

$
0
0
Olá amigos, será que alguém poderia me passar um sistema de criar casas (in game) que seja pela include DOF2??
Ficarei muito grato se me mandarem!!

OBG!!

Problem with fourniture Load

$
0
0
Hello,
I have a problem with this code, the furnitures in a house don't load completely.
Here is a screen of the debug.



And here is the code.
Code:

forward house_LoadFurnitures();
public house_LoadFurnitures()
{
        new mob=-1, tmp = 0;
        cache_get_row_count(totalFurnitures);
        for (new i=0; i<totalFurnitures; i++)
        {
            mob = house_CheckUnusedFurniture(tmp);
            cache_get_value_index_int(i,1, tmp);
            cache_get_value_index_int(i,0, house[tmp][fFurSQLid][mob]);
            cache_get_value_index_int(i,2, house[tmp][hItem][mob]);
            cache_get_value_index_float(i,3, house[tmp][hFurPos_x][mob]);
            cache_get_value_index_float(i,4, house[tmp][hFurPos_y][mob]);
            cache_get_value_index_float(i,5, house[tmp][hFurPos_z][mob]);
            cache_get_value_index_float(i,6, house[tmp][hFurPos_rx][mob]);
            cache_get_value_index_float(i,7, house[tmp][hFurPos_ry][mob]);
            cache_get_value_index_float(i,8, house[tmp][hFurPos_rz][mob]);
            house_UpdateFurnitureInfos(tmp, mob);
        }
        if(gServerReload==0)
                {printf("    .. %d mobilier(s) chargé(s)",totalFurnitures);}
}


I tried hard but i can't solve it.
Please help.
Thank you.

[Ajuda] Alguns erros ao compilar !!

$
0
0
PHP Code:

C:\Users\55119\Desktop\JOIA%20DO%20INFINITO%20para%20SERIG\COPIA PARA JOÃO SERIGNOLLI AQUELE GAY\gamemodes\projetoatt.pwn(59) : warning 219local variable "pNome" shadows a variable at a preceding level
C
:\Users\55119\Desktop\JOIA%20DO%20INFINITO%20para%20SERIG\COPIA PARA JOÃO SERIGNOLLI AQUELE GAY\gamemodes\projetoatt.pwn(60) : error 017undefined symbol "pnome"
C:\Users\55119\Desktop\JOIA%20DO%20INFINITO%20para%20SERIG\COPIA PARA JOÃO SERIGNOLLI AQUELE GAY\gamemodes\projetoatt.pwn(60) : error 017undefined symbol "pnome"
C:\Users\55119\Desktop\JOIA%20DO%20INFINITO%20para%20SERIG\COPIA PARA JOÃO SERIGNOLLI AQUELE GAY\gamemodes\projetoatt.pwn(60) : error 029invalid expressionassumed zero
C
:\Users\55119\Desktop\JOIA%20DO%20INFINITO%20para%20SERIG\COPIA PARA JOÃO SERIGNOLLI AQUELE GAY\gamemodes\projetoatt.pwn(60) : fatal error 107too many error messages on one line

Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase


4 Errors



Alguém poderia me ajudar
?

error 017: undefined symbol "playerid" (TEXT DRAW)

$
0
0
PHP Code:

C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1025) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1026) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1027) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1028) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1029) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1030) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1031) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1032) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1033) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1034) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1035) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1036) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1037) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1039) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1040) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1041) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1042) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1043) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1044) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1045) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1046) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1047) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1048) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1050) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1051) : error 017undefined symbol "playerid"
C:\Users\UseR\Desktop\SvT\SvT-Server\gamemodes\svt.pwn(1052) : error 017undefined symbol "playerid" 

PHP Code:

    //DM TDE
    
TDEdm[playerid][0] = CreatePlayerTextDraw(playerid99.37500067.500015"box");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][0], 0.00000030.312500);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][0], 551.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][0], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][0], -1);
    
PlayerTextDrawUseBox(playeridTDEdm[playerid][0], 1);
    
PlayerTextDrawBoxColor(playeridTDEdm[playerid][0], 143);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][0], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][0], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][0], 159);
    
PlayerTextDrawFont(playeridTDEdm[playerid][0], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][0], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][0], 0);

    
TDEdm[playerid][1] = CreatePlayerTextDraw(playerid98.12500068.083328"SWAT VS TERRORIST");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][1], 0.5000002.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][1], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][1], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][1], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][1], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][1], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][1], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][1], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][1], 0);

    
TDEdm[playerid][2] = CreatePlayerTextDraw(playerid93.07501961.083335"box");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][2], 0.00000031.625000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][2], 561.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][2], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][2], -1);
    
PlayerTextDrawUseBox(playeridTDEdm[playerid][2], 1);
    
PlayerTextDrawBoxColor(playeridTDEdm[playerid][2], 79);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][2], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][2], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][2], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][2], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][2], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][2], 0);

    
TDEdm[playerid][3] = CreatePlayerTextDraw(playerid223.75000068.083328"SvT");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][3], 0.4000002.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][3], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][3], -16776961);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][3], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][3], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][3], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][3], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][3], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][3], 0);

    
TDEdm[playerid][4] = CreatePlayerTextDraw(playerid105.625000135.750030"box");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][4], 0.00000021.937500);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][4], 367.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][4], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][4], -1);
    
PlayerTextDrawUseBox(playeridTDEdm[playerid][4], 1);
    
PlayerTextDrawBoxColor(playeridTDEdm[playerid][4], -2139062017);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][4], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][4], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][4], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][4], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][4], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][4], 0);

    
TDEdm[playerid][5] = CreatePlayerTextDraw(playerid103.125000113.583366"DEATH-MATCH_ARENA_LIST_:");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][5], 0.4000001.799998);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][5], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][5], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][5], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][5], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][5], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][5], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][5], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][5], 0);

    
TDEdm[playerid][6] = CreatePlayerTextDraw(playerid108.250007138.666595"MINIGUN_ARENA");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][6], 0.4000002.400000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][6], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][6], -5963521);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][6], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][6], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][6], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][6], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][6], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][6], 0);
    
PlayerTextDrawSetSelectable(playeridTDEdm[playerid][6], true);

    
TDEdm[playerid][7] = CreatePlayerTextDraw(playerid108.125000166.666687"MONEYBAG_HUNT");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][7], 0.4000002.299998);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][7], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][7], -5963521);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][7], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][7], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][7], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][7], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][7], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][7], 0);
    
PlayerTextDrawSetSelectable(playeridTDEdm[playerid][7], true);

    
TDEdm[playerid][8] = CreatePlayerTextDraw(playerid108.675010193.500015"RPG_ARENA");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][8], 0.4000002.299998);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][8], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][8], -5963521);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][8], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][8], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][8], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][8], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][8], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][8], 0);
    
PlayerTextDrawSetSelectable(playeridTDEdm[playerid][8], true);

    
TDEdm[playerid][9] = CreatePlayerTextDraw(playerid109.049995218.583343"GLASS_ARENA");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][9], 0.4000002.299998);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][9], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][9], -5963521);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][9], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][9], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][9], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][9], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][9], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][9], 0);
    
PlayerTextDrawSetSelectable(playeridTDEdm[playerid][9], true);

    
TDEdm[playerid][10] = CreatePlayerTextDraw(playerid108.699981246.583343"ADM_ARENA");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][10], 0.4000002.299998);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][10], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][10], -5963521);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][10], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][10], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][10], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][10], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][10], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][10], 0);
    
PlayerTextDrawSetSelectable(playeridTDEdm[playerid][10], true);

    
TDEdm[playerid][11] = CreatePlayerTextDraw(playerid110.000000275.749969"box");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][11], 0.0000006.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][11], 361.0000000.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][11], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][11], -1);
    
PlayerTextDrawUseBox(playeridTDEdm[playerid][11], 1);
    
PlayerTextDrawBoxColor(playeridTDEdm[playerid][11], 255);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][11], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][11], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][11], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][11], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][11], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][11], 0);

    
TDEdm[playerid][12] = CreatePlayerTextDraw(playerid109.375000285.083770"For_more_information,_please_join_our_Forum");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][12], 0.3000001.500000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][12], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][12], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][12], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][12], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][12], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][12], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][12], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][12], 0);

    
TDEdm[playerid][13] = CreatePlayerTextDraw(playerid110.625000304.983306"samp-ugw.epizy.com");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][13], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][13], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][13], 16777215);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][13], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][13], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][13], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][13], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][13], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][13], 0);

    
TDEdm[playerid][14] = CreatePlayerTextDraw(playerid364.199340195.916564"");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][14], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][14], 121.000000120.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][14], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][14], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][14], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][14], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][14], 0);
    
PlayerTextDrawFont(playeridTDEdm[playerid][14], 5);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][14], 0);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][14], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEdm[playerid][14], 432);
    
PlayerTextDrawSetPreviewRot(playeridTDEdm[playerid][14], 0.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridTDEdm[playerid][14], 11);

    
TDEdm[playerid][15] = CreatePlayerTextDraw(playerid438.750000194.666610"");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][15], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][15], 121.000000120.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][15], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][15], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][15], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][15], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][15], 0);
    
PlayerTextDrawFont(playeridTDEdm[playerid][15], 5);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][15], 0);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][15], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEdm[playerid][15], 432);
    
PlayerTextDrawSetPreviewRot(playeridTDEdm[playerid][15], 0.0000000.00000020.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridTDEdm[playerid][15], 11);

    
TDEdm[playerid][16] = CreatePlayerTextDraw(playerid334.824340143.999893"");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][16], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][16], 121.000000120.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][16], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][16], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][16], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][16], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][16], 0);
    
PlayerTextDrawFont(playeridTDEdm[playerid][16], 5);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][16], 0);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][16], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEdm[playerid][16], 520);
    
PlayerTextDrawSetPreviewRot(playeridTDEdm[playerid][16], -8.0000000.000000, -20.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridTDEdm[playerid][16], 11);

    
TDEdm[playerid][17] = CreatePlayerTextDraw(playerid459.199340145.166549"");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][17], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][17], 121.000000120.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][17], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][17], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][17], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][17], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][17], 0);
    
PlayerTextDrawFont(playeridTDEdm[playerid][17], 5);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][17], 0);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][17], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEdm[playerid][17], 520);
    
PlayerTextDrawSetPreviewRot(playeridTDEdm[playerid][17], -8.0000000.00000020.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridTDEdm[playerid][17], 11);

    
TDEdm[playerid][18] = CreatePlayerTextDraw(playerid399.199340131.749877"");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][18], 0.0000000.000000);
    
PlayerTextDrawTextSize(playeridTDEdm[playerid][18], 121.000000120.000000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][18], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][18], -1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][18], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][18], 0);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][18], 0);
    
PlayerTextDrawFont(playeridTDEdm[playerid][18], 5);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][18], 0);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][18], 0);
    
PlayerTextDrawSetPreviewModel(playeridTDEdm[playerid][18], 476);
    
PlayerTextDrawSetPreviewRot(playeridTDEdm[playerid][18], 20.0000000.0000000.0000001.000000);
    
PlayerTextDrawSetPreviewVehCol(playeridTDEdm[playerid][18], 11);

    
TDEdm[playerid][19] = CreatePlayerTextDraw(playerid417.500000214.500015"SWAT VS TERRORIST");
    
PlayerTextDrawLetterSize(playeridTDEdm[playerid][19], 0.4000001.600000);
    
PlayerTextDrawAlignment(playeridTDEdm[playerid][19], 1);
    
PlayerTextDrawColor(playeridTDEdm[playerid][19], -16776961);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][19], 0);
    
PlayerTextDrawSetOutline(playeridTDEdm[playerid][19], 1);
    
PlayerTextDrawBackgroundColor(playeridTDEdm[playerid][19], 255);
    
PlayerTextDrawFont(playeridTDEdm[playerid][19], 1);
    
PlayerTextDrawSetProportional(playeridTDEdm[playerid][19], 1);
    
PlayerTextDrawSetShadow(playeridTDEdm[playerid][19], 0); 

i already define it
PHP Code:

new PlayerText:TDEdm[MAX_PLAYERS][20]; 

bro help me to fix it

and here my code

PHP Code:

CMD:dm(playerid)
{
    
PlayerTextDrawShow(playeridPlayerText:TDEdm[playerid][20]);
    return 
1;


&
PHP Code:

public OnPlayerClickPlayerTextDraw(playeridPlayerText:playertextid)
{
    if(
playertextid == TDEdm[playerid][6])
    {
    
cmd_mdm(playerid"");
    }
    else if(
playertextid == TDEdm[playerid][7])
    {
    
cmd_mb(playerid"");
    }
    else if(
playertextid == TDEdm[playerid][8])
    {
    
cmd_rpg(playerid"");
    }
    else if(
playertextid == TDEdm[playerid][9])
    {
    
cmd_glass(playerid"");
    }
    else if(
playertextid == TDEdm[playerid][10])
     {
     
cmd_adm(playerid"");
     }
     
     
PlayerTextDrawHide(playeridPlayerText:text)
     
     
CancelSelectTextDraw(playerid);
     return 
1;


SendClientMessageEx for Multilanguage support

$
0
0
Ahoy friends.
Today i want to continue to translate the Super Freeroam script and i was able to replace all SendClientMessage structures already.
But not the remaining part using SendClientMessagEx and my current SendMessage function.

Code:

stock SendMessage(playerid, colour, Language1[], Language2[] , Language3[])
{
        switch( player_Language[playerid] )
        {
        case 0: //Language 1
                {
                        SendClientMessage(playerid, colour, Language1);
                }
        case 1: //Language 2
                {
                        SendClientMessage(playerid, colour, Language2);
                }
               
        case 2: //Language 3
                {
                        SendClientMessage(playerid, colour, Language3);
                }
               
        }
        return true;
}

Code:

SendClientMessageEx(playerid, color, form[], {Float, _}: ...) {
    #pragma unused form
    static
        tmp[145]
    ;
    new
        t1 = playerid,
        t2 = color
    ;
    const
        n4 = -4,
        n16 = -16,
        size = sizeof tmp
    ;
    #emit stack 28
    #emit push.c size
    #emit push.c tmp
    #emit stack n4
    #emit sysreq.c format
    #emit stack n16
    return (t1 == -1 ? (SendClientMessageToAll(t2, tmp)) : (SendClientMessage(t1, t2, tmp)) );
}

So i wanted to code something to create message this way:
Code:

SendMessageEx(-1, -1, "{B0E66A}%s {CCCCCC}has joined the server", "{B0E66A}%s {CCCCCC}ha entrado al servidor", "{B0E66A}%s {CCCCCC}entrou no servidor", PI[playerid][P_NAME]);
So i tried to code something by using the current SendClientMessageEx function as a sample, but unfortunately it didn't work so well.
Does anyone known how to do that?

Code:

stock SendMessageEx(playerid, color, Language1[], Language2[] , Language3[], {Float, _}:...)
{
        #define BYTECOUNT  (cellbits / 8)
        if(playerid == -1)
        {
                for(new i; i<MAX_PLAYERS;i++)
                {
                        if(!IsPlayerConnected(i)) continue;
                        if(IsPlayerNPC(i)) continue;
                        switch( player_Language[i] )
                        {
                        case 0: //Language 1
                                {
                                        static const
                                        ARGC = 3;
                                        new n = (numargs() - ARGC) * BYTECOUNT;
                                        if (n)
                                        {
                                                new message[128], arg_start, arg_end;
                                                #emit CONST.alt        Language1
                                                #emit LCTRL          5
                                                #emit ADD
                                                #emit STOR.S.pri        arg_start
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit STOR.S.pri        arg_end
                                                do
                                                {
                                                        #emit LOAD.I
                                                        #emit PUSH.pri
                                                        arg_end -= BYTECOUNT;
                                                        #emit LOAD.S.pri      arg_end
                                                }
                                                while (arg_end > arg_start);
                                                #emit PUSH.S          Language1
                                                #emit PUSH.C          128
                                                #emit PUSH.ADR        message
                                                n += BYTECOUNT * 3;
                                                #emit PUSH.S          n
                                                #emit SYSREQ.C        format
                                                n += BYTECOUNT;
                                                #emit LCTRL          4
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit SCTRL          4
                                                return SendClientMessage(i, color, message);
                                        }
                                }
                        case 1: //Language 2
                                {
                                        static const
                                        ARGC = 3;
                                        new n = (numargs() - ARGC) * BYTECOUNT;
                                        if (n)
                                        {
                                                new message[128], arg_start, arg_end;
                                                #emit CONST.alt        Language2
                                                #emit LCTRL          5
                                                #emit ADD
                                                #emit STOR.S.pri        arg_start
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit STOR.S.pri        arg_end
                                                do
                                                {
                                                        #emit LOAD.I
                                                        #emit PUSH.pri
                                                        arg_end -= BYTECOUNT;
                                                        #emit LOAD.S.pri      arg_end
                                                }
                                                while (arg_end > arg_start);
                                                #emit PUSH.S          Language2
                                                #emit PUSH.C          128
                                                #emit PUSH.ADR        message
                                                n += BYTECOUNT * 3;
                                                #emit PUSH.S          n
                                                #emit SYSREQ.C        format
                                                n += BYTECOUNT;
                                                #emit LCTRL          4
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit SCTRL          4
                                                return SendClientMessage(i, color, message);
                                        }
                                }
                               
                        case 2: //Language 3
                                {
                                        static const
                                        ARGC = 3;
                                        new n = (numargs() - ARGC) * BYTECOUNT;
                                        if (n)
                                        {
                                                new message[128], arg_start, arg_end;
                                                #emit CONST.alt        Language3
                                                #emit LCTRL          5
                                                #emit ADD
                                                #emit STOR.S.pri        arg_start
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit STOR.S.pri        arg_end
                                                do
                                                {
                                                        #emit LOAD.I
                                                        #emit PUSH.pri
                                                        arg_end -= BYTECOUNT;
                                                        #emit LOAD.S.pri      arg_end
                                                }
                                                while (arg_end > arg_start);
                                                #emit PUSH.S          Language3
                                                #emit PUSH.C          128
                                                #emit PUSH.ADR        message
                                                n += BYTECOUNT * 3;
                                                #emit PUSH.S          n
                                                #emit SYSREQ.C        format
                                                n += BYTECOUNT;
                                                #emit LCTRL          4
                                                #emit LOAD.S.alt        n
                                                #emit ADD
                                                #emit SCTRL          4
                                                return SendClientMessage(i, color, message);
                                        }
                                }
                               
                        }
                }
        }
        else
        {
                switch( player_Language[playerid] )
                {
                case 0: //Language 1
                        {
                                static const
                                ARGC = 3;
                                new n = (numargs() - ARGC) * BYTECOUNT;
                                if (n)
                                {
                                        new message[128], arg_start, arg_end;
                                        #emit CONST.alt        Language1
                                        #emit LCTRL          5
                                        #emit ADD
                                        #emit STOR.S.pri        arg_start
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit STOR.S.pri        arg_end
                                        do
                                        {
                                                #emit LOAD.I
                                                #emit PUSH.pri
                                                arg_end -= BYTECOUNT;
                                                #emit LOAD.S.pri      arg_end
                                        }
                                        while (arg_end > arg_start);
                                        #emit PUSH.S          Language1
                                        #emit PUSH.C          128
                                        #emit PUSH.ADR        message
                                        n += BYTECOUNT * 3;
                                        #emit PUSH.S          n
                                        #emit SYSREQ.C        format
                                        n += BYTECOUNT;
                                        #emit LCTRL          4
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit SCTRL          4
                                        return SendClientMessage(playerid, color, message);
                                }
                        }
                case 1: //Language 2
                        {
                                static const
                                ARGC = 3;
                                new n = (numargs() - ARGC) * BYTECOUNT;
                                if (n)
                                {
                                        new message[128], arg_start, arg_end;
                                        #emit CONST.alt        Language2
                                        #emit LCTRL          5
                                        #emit ADD
                                        #emit STOR.S.pri        arg_start
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit STOR.S.pri        arg_end
                                        do
                                        {
                                                #emit LOAD.I
                                                #emit PUSH.pri
                                                arg_end -= BYTECOUNT;
                                                #emit LOAD.S.pri      arg_end
                                        }
                                        while (arg_end > arg_start);
                                        #emit PUSH.S          Language2
                                        #emit PUSH.C          128
                                        #emit PUSH.ADR        message
                                        n += BYTECOUNT * 3;
                                        #emit PUSH.S          n
                                        #emit SYSREQ.C        format
                                        n += BYTECOUNT;
                                        #emit LCTRL          4
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit SCTRL          4
                                        return SendClientMessage(playerid, color, message);
                                }
                        }
                       
                case 2: //Language 3
                        {
                                static const
                                ARGC = 3;
                                new n = (numargs() - ARGC) * BYTECOUNT;
                                if (n)
                                {
                                        new message[128], arg_start, arg_end;
                                        #emit CONST.alt        Language3
                                        #emit LCTRL          5
                                        #emit ADD
                                        #emit STOR.S.pri        arg_start
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit STOR.S.pri        arg_end
                                        do
                                        {
                                                #emit LOAD.I
                                                #emit PUSH.pri
                                                arg_end -= BYTECOUNT;
                                                #emit LOAD.S.pri      arg_end
                                        }
                                        while (arg_end > arg_start);
                                        #emit PUSH.S          Language3
                                        #emit PUSH.C          128
                                        #emit PUSH.ADR        message
                                        n += BYTECOUNT * 3;
                                        #emit PUSH.S          n
                                        #emit SYSREQ.C        format
                                        n += BYTECOUNT;
                                        #emit LCTRL          4
                                        #emit LOAD.S.alt        n
                                        #emit ADD
                                        #emit SCTRL          4
                                        return SendClientMessage(playerid, color, message);
                                }
                        }
                       
                }       
               
        }
       
        return true;
}


..:: xUF ::.. × Xtreme Unreal Freeroam × New Amazing Freeroam server!. Looking for staff!

$
0
0



Xtreme Unreal Freeroam!

Introduction

xUF is SA-MP server based off stunt/race and freeroam, this server also offers alot a range of other things, including DM and CnR, we try our best to offer our players the best gaming experience in SA-MP, Our script and maps will be getting updated often, so who says San Andreas gets old? Join this awesome new community!

Features

Range of stunts, amazing maps!.
Cops and Robbers minigame (/cnr) (and many more minigames).
Private vehicle ownership.
Advanced housing system, access all house features like furniture/interior editor etc via /hmenu.
Advanced racing system.
Advanced dueling system, with player spectating.
Events including derby events on a daily basis!
Advanced challenges with epic rewards!
Advanced IRC system, everything on the server is displayed over IRC
Events including derby events on a daily basis!
Range of awesome deathmatches, including TDM.
Achievement system with special prizes!
Bunch of awesome minigames, including Demolition Derby and Fallout!
Advanced Group/gang system with many features.
Advanced MySQL system, all your data including personal settings are saved in our database!
Friendly user interface, you can access everything via the /help command.
Toy system - attach a range of permanent objects to your character!
Banking system. All your score and money are server-sided and accounted for!
A full 100% free gameplay. Get a cash/score/credits reward every 10 min you are online!
..and much more!

Info

Server IP: 185.61.138.98:7777
Hosted list: Yes.
Online since: 31-5-2019

The server (since the start) had never been empty, so you'll always have someone to play with!

Join and play in this awesome community today (or just check it out and let us convince you!)
We are still looking for staff! So PM me if you are interested!

Connect direct with this link! samp://185.61.138.98:7777

SF-CNR • Deathmatch, Poker, Pool, Gangwars, Roleplay, Race, Stocks, Businesses, Battle Royale • 100K BONUS • OPEN-SOURCE

$
0
0

• Server Information

IP Address: 51.83.78.208:7777 or svr.sfcnr.com:7777
User Control Panel: sfcnr.com
Information: Redeem a $100,000 cash card in-game (/cashcard) with code OPENSRC19

• Introduction

Our server is one of the best servers for deathmatching in the English-speaking community. We have been around since 2011, the community is well-aged, well-financed and very productive.

There is a tendency to us implementing features inspired by many trending games (GTA 5 and PayDay 2) and TV series (Breaking Bad, Prison Break and The Wire).

Our server is custom and contain many unique features that most servers don't have. We are very welcoming - and I play my own server a lot.

We are also 100% open-source now. https://github.com/zeelorenc/sf-cnr

• Features
  • Arresting as a COP (MMB to taze, cuff, arrest)
  • Robbing stores and players
  • Killing players
  • Competitive experience/leveling algorithm
  • Action packed gang wars - the most innovative
  • Fight the house fire epidemic as a fireman (/fires)
  • Chop wood as a lumberjack
  • Kidnap players and hold them for ransom
  • Blowing up the jail cells to break out criminals from prisons
  • Constant hit contracts placed on players anonymously
  • Steal furniture and cash them at the Pawn Shop.
  • Mine ores and export them
  • Create methamphetamine in RVs and export to Cluckin' Bell
  • Bank, drug house and ship hiests
  • Rob NPC security trucks (just like GTA 5).
  • Blowing up Alcatraz to release the high-risk criminals
  • Jacking cars and exporting them in Shipyard containers.
  • Rob atms around the server
  • Gamble the finest and most addicting casinos in SA-MP
  • Buy and sell /stocks ... we have a P2P tradable market with stocks that can be manipulated
  • Race players using our fun outrun race feature (/race)
  • Buy fireworks at a local 24/7 or Supa Save to celebrate an occasion
  • Play 8-Ball Pool at any bar in San Andreas
  • Play Poker (up to 6 players) at any casino in Las Venturas
  • House, vehicle, garage, gate, gang facility, business systems available
  • Boost The Trucking Company's stock price by Trucking
  • Toy/clothes system (/toys)
  • Paintball system to have endless training on DM
  • Battle Royale Minigame
  • And much more...

/features or /help for insight.

If you need any other help, contact us in-game by /ask or simply by the forums!


Password wont save

Convert minutes into hours/days

$
0
0
I'm terrible when it comes to converting stuff so I need some help.

I track player online time by increasing +1 every minute. How do I go about getting that value and converting it (the minutes) to display hours and days?

Never-ending Skin Changer

$
0
0
Hello, i got a problem. When i login on my server by admin, let me write any command ( also works "/fuewniwbgew" ), the Skin menu is always displayed. But when I type "/skins" as shown in the picture, "Command doesn't exist." Please help, thanks :) :confused:

http://prnt.sc/nwltba

[Ajuda] Pawno no Sublime text 3

$
0
0
Ola pessoal

bom eu tava tentando usar o pawn no sublime text 3 dai fui ver tutoriais de como usar a linguagem no sublime dai vi esse tutorial no forum:

dai fiz praticamente tudo o que se pediu la...Mas quandovou compilar aparece isso:

PHP Code:

__init__() got an unexpected keyword argument 'caminho'
[cmd: ['pawncc.exe''-i inclui''''-; +']]
[
dirC:\Users\black\Desktop\Arlean\GM\pawno]
[
pathC:\Program Files (x86)\Intel\TXE Components\TCS\;C:\Program Files\Intel\TXE Components\TCS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\TXE Components\DAL\;C:\Program Files (x86)\Intel\TXE Components\DAL\;C:\Program Files\Intel\TXE Components\IPT\;C:\Program Files (x86)\Intel\TXE Components\IPT\;C:\WINDOWS\System32\OpenSSH\;C:\Users\black\AppData\Local\Microsoft\WindowsApps;]
[
Finished

alguem sabe como resolver?

Group Robbing

$
0
0
How to make that people actully join a robbery no that only one player can rob store at the time

[Ajuda] Item selecionado na dialog com loop

$
0
0
Bom galera, estou quebrando a cabeça para tentar acertar o mesmo, estou adaptando um sistema de trade em uma GAMEMODE... Sendo que queria saber como faço para puxar o ID do item selecionado em loop?
Nesse loop, queria que a função abaixo adicionasse o ID referente ao dialog list selecionado:

PHP Code:

AddTradeItem(playerid4i); 

Sendo que quando eu coloco dentro do loop, ele floda o resultado, e queria que só aparecesse o resultado do item que o player selecionou na DIALOG.

Conseguem me ajudar? só queria saber como descubro o resultado de "i" para eu poder adcionar na função AddTradeIten.
PHP Code:

   //Isso na public OnDialogResponse     
  //if(dialogid == DIALOG_TRADE)

       
 
case 4:{
                    new 
Cont 0;
                    new 
stringg[128];
                    new 
TradeInv[4200];
                    
format(stringg,128"Item\tQuantidade\n");
                    
strcat(TradeInv,stringg);
                    for(new 
175i++)
                       {
                         if(
InventarioInfo[playerid][i][iUnidades] > 0)
                         {
                            
format(stringgsizeof stringg"%s\t%d\n"NomeItemInvInventario(iplayerid), InventarioInfo[playerid][i][iUnidades]);
                            
Cont++;
                            
strcat(TradeInv,stringg);
                         }
                       
AddTradeItem(playerid4i);       //pareiiaquii
                    
}
                    new 
titulo[35];
                    
format(titulosizeof(titulo), "Itens que você tem: {00d900}%d",Cont);
                    
ShowPlayerDialog(playerid66449DIALOG_STYLE_TABLIST_HEADERStituloTradeInv"Selecionar""");

                }
            } 

[Ajuda] Qual está certo?

$
0
0
Estou com uma dúvida, queria saber qual está certo.

new CarrosTeste[2];
PHP Code:

CarrosTeste{0} = AddStaticVehicleEx(.... 

ou Assim:
PHP Code:

CarrosTeste[0] = AddStaticVehicleEx(.... 

[Ajuda] otimizar ou esta bom como está ?

$
0
0
boa noite a todos, estou desenvolvendo minha gm, e estou finalizando meu sistema de level, gostaria de saber se o comando '/comprar level' está bom, ou teria alguma forma de otimização, (eu sou muito paranoico com os códigos que faço).

PHP Code:

CMD:comprar(playeridparams[])
{
    new 
comando[20];
    
    if(
sscanf(params,"s",comando))  return  SCM(playeridINFOA"Comando incorreto ! Use /comprar [item], para mais comandos digite /ajuda");

    if(
strcmp(comando"nivel"true) == 0)
     {
      if(
Player[playerid][pLevel] == 0)
       {
        if(
Player[playerid][pScore] == 7) { if(GetPlayerMoney(playerid) >= 200) { Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -200); } else { SCM(playeridINFOA"Você não tem dinheiro suficiente para comprar o level 1 !"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
       if(
Player[playerid][pLevel] == 1)
       {
        if(
Player[playerid][pScore] == 10) { if(GetPlayerMoney(playerid) >= 800) { Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -800); } else { SCM(playeridINFOA"Você não tem dinheiro suficiente para comprar o level 2"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
      if(
Player[playerid][pLevel] == 2)
       {
        if(
Player[playerid][pScore] == 13) { if(GetPlayerMoney(playerid) >= 1000) { Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -1000); } else { SCM(playeridINFOA"Você não tem dinheiro suficiente para comprar o level 3"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
      if(
Player[playerid][pLevel] == 3)
       {
        if(
Player[playerid][pScore] == 13) { if(GetPlayerMoney(playerid) >= 1500) { Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -1500); } else {SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 4"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
      if(
Player[playerid][pLevel] == 4)
       {
        if(
Player[playerid][pScore] == 16) { if(GetPlayerMoney(playerid) >= 5000) {Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -5000); } else {SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 5"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
      if(
Player[playerid][pLevel] == 5)
       {
        if(
Player[playerid][pScore] == 16) { if(GetPlayerMoney(playerid) >= 10000) { Player[playerid][pLevel] += 1GivePlayerMoney(playerid, -10000); } else {SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 6"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
      if(
Player[playerid][pLevel] == 6)
       {
        if(
Player[playerid][pScore] == 20) { if(GetPlayerMoney(playerid) >= 18000) { Player[playerid][pLevel] += 1,  GivePlayerMoney(playerid, -18000); } else { SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 7"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
      
      if(
Player[playerid][pLevel] == 7)
       {
        if(
Player[playerid][pScore] == 24) { if(GetPlayerMoney(playerid) >= 20000) { Player[playerid][pLevel] += 1,  GivePlayerMoney(playerid, -20000); } else { SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 8"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
      
      if(
Player[playerid][pLevel] == 8)
       {
        if(
Player[playerid][pScore] == 28) { if(GetPlayerMoney(playerid) >= 27000) { Player[playerid][pLevel] += 1,  GivePlayerMoney(playerid, -27000); } else { SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 9"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
      if(
Player[playerid][pLevel] == 9)
       {
        if(
Player[playerid][pScore] == 32) { if(GetPlayerMoney(playerid) >= 32000) { Player[playerid][pLevel] += 1,  GivePlayerMoney(playerid, -32000); } else { SCM(playeridINFOA"Você não tem dinheiro o suficiente para comprar o level 10"); } } else { SCM(playeridINFOA"Você não tem pontos o suficiente para upar de level !"); }
       }
       
       
     }
    return 
1;


Report

$
0
0
When I have more reports,and I solve one of them,the rest of reports gone. Can someone to help me?

Code:
HTML Code:

CMD:reports(playerid, params[])
{
    if(CosminInfo[playerid][Level] < 3) return SendError2(playerid, "You are not a high enough admin level to use this command!", "Nu detii admin level-ul necesar pentru a accesa aceasta comanda!");
    //--------------------------------------------------------------------------
        eString[0] = EOS;
    //--------------------------------------------------------------------------
    if(ServerInfo[Reports] != -1)
    {
      if(CosminInfo[playerid][ReportedBy] != -1)
      {
            format(eString, sizeof(eString), "%s\n%s", eString, ReportStr);
            ShowPlayerDialog(playerid, DIALOG_GM, DIALOG_STYLE_LIST, "{FF0000}Active Reports {FFFFFF}- Use {FFAE00}/res [id] {FFFFFF}to solve a report!", eString, "Close", "");
      }
    }
    //--------------------------------------------------------------------------
        else return SendError2(playerid, "{FFFFFF}There are no reports", "{FFFFFF}Nu exista niciun report");
        //--------------------------------------------------------------------------
    return 1;
}

HTML Code:

CMD:res(playerid, params[])
{
        new Player, Str2[2500], Str[2500]; eString[0] = EOS;
        //--------------------------------------------------------------------------
        if(CosminInfo[playerid][Level] < 3) return SendError2(playerid, "{FFFFFF}You are not a high enough admin level to use this command!", "{FFFFFF}Nu detii admin level-ul necesar pentru a accesa aceasta comanda!");
    //--------------------------------------------------------------------------
    if(sscanf(params, "u", Player)) return
        SendUsage(playerid, "/Res [ReportID]");
        //--------------------------------------------------------------------------
        if(!IsPlayerConnected(Player) && Player == INVALID_PLAYER_ID) return
        SendError2(playerid, "{FFFFFF}Player is not connected!", "{FFFFFF}Jucatorul respectiv nu este conectat!");
        //--------------------------------------------------------------------------
        if(CosminInfo[Player][ReportedBy] == -1) return
        SendError2(playerid, "{FFFFFF}This player was not reported!", "{FFFFFF}Acest jucator nu a fost raportat");
        //--------------------------------------------------------------------------
        if(CosminInfo[playerid][Language]            == 1) format(Str, sizeof(Str), "{3399FF}[REPORT]: {E4EDF4}Administratorul {F81414}%s {E4EDF4}ti-a rezolvat report-ul pe {F81414}%s", PlayerName(playerid), PlayerName(Player));
        else if(CosminInfo[playerid][Language] == 0) format(Str, sizeof(Str), "{3399FF}[REPORT]: {E4EDF4}Admin {F81414}%s {E4EDF4}resolved your report on {F81414}%s", PlayerName(playerid), PlayerName(Player));
        SendClientMessage(CosminInfo[Player][ReportedBy], -1, Str);
        //--------------------------------------------------------------------------
    CosminInfo[Player][ReportedBy] = -1; ServerInfo[Reports]--; format(ReportStr, sizeof(ReportStr), "%s", eString);
        //--------------------------------------------------------------------------
        foreach(new i:Player) if(CosminInfo[i][Level] >
0) ReportsCheck(i);
        //--------------------------------------------------------------------------
        format(Str2, sizeof(Str2), "{0066FF}[ADMIN]: {F81414}%s {0066FF}has solved report id {F81414}#%d", PlayerName(playerid), Player); MessageToAdmins(COLOR_YELLOW, Str2);
        //--------------------------------------------------------------------------
        return 1;
}

HTML Code:

CMD:report(playerid, params[])
{
    new Player, Reason[128], Str[2500];
    //--------------------------------------------------------------------------
    if(sscanf(params, "us[128]", Player, Reason)) return
        SendUsage(playerid, "/Report [PlayerID] [Reason]");
        //--------------------------------------------------------------------------
    if((gettime() - ReportTime[playerid]) < 10) return
        SendError2(playerid, "{FFFFFF}You can use this command only once at 10 seconds!", "{FFFFFF}Poti folosi aceasta comanda o data la 10 secunde!");
        //--------------------------------------------------------------------------
        if(!IsPlayerConnected(Player) && Player == INVALID_PLAYER_ID) return
        SendError2(playerid, "{FFFFFF}Player is not connected!", "{FFFFFF}Player-ul respectiv nu este conectat!");
        //--------------------------------------------------------------------------
        if(Player == playerid && CosminInfo[playerid][AccRcon] == 0) return
        SendError2(playerid, "{FFFFFF}You can't report yourself!", "{FFFFFF}Nu te poti reporta pe tine!");
        //--------------------------------------------------------------------------
        if(CosminInfo[Player][ReportedBy] == 1) return
        SendError2(playerid, "{FFFFFF}This player was already reported by someone else!", "{FFFFFF}Acest player a fost deja reportat de altcineva!");
    //--------------------------------------------------------------------------
        if(CosminInfo[playerid][Language]            == 0) FormatMSG(playerid, -1, "{00FF40}/REPORT: %s(%d) a fost raportat adminilor online! (Motiv: %s)", PlayerName(Player), Player, Reason);
        else if(CosminInfo[playerid][Language] == 1) FormatMSG(playerid, -1, "{00FF40}/REPORT: %s(%d) has been reported to the online administrators! (Reason: %s)", PlayerName(Player), Player, Reason);
        //--------------------------------------------------------------------------
        format(ReportStr, sizeof(ReportStr), "%s\n{00FF40}#{E4EDF4}%d {FF8000}%s {E4EDF4}reported {F81414}%s {E4EDF4}: %s", ReportStr, Player, PlayerName(playerid), PlayerName(Player), Reason);
        //--------------------------------------------------------------------------
        format(Str, sizeof(Str), "{FF0000}/Reports: {00FFFF}%s(%d) {00FF00}reported {00FFFF}%s(%d){00FF00}. Reason: {00FFFF}%s", PlayerName(playerid), playerid, PlayerName(Player), Player, Reason); MessageToAdmins(COLOR_YELLOW, Str);
        //--------------------------------------------------------------------------
        //Reportby[Player] = PlayerName(playerid), Reportp[Player] = PlayerName(Player), Reportsr[Player] = Reason;
        //--------------------------------------------------------------------------
        CosminInfo[Player][ReportedBy] = playerid; ServerInfo[Reports]++;
        //--------------------------------------------------------------------------
        foreach(new i: Player)
        {
          if(CosminInfo[i][Level] >
= 3)
          {
              ReportsCheck(i), PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0), InactivityT[i] = SetTimerEx("InactivityTimer", 60000, false, "i", i);
          }
        }
    //--------------------------------------------------------------------------
        ReportTime[playerid] = gettime();
        //--------------------------------------------------------------------------
        return 1;
}

HTML Code:

CMD:n(playerid, params[])
{
    new Reason[128], Player, Str[2500];
    //--------------------------------------------------------------------------
    if(sscanf(params, "s[128]", Reason)) return
        SendUsage(playerid, "/n [Reason]");
        //--------------------------------------------------------------------------
    if((gettime() - hmTimer[playerid]) < 10) return
        SendError2(playerid, "{FFFFFF}You can use this command only once at 10 seconds!", "{FFFFFF}Poti folosi aceasta comanda o data la 10 secunde!");
        //--------------------------------------------------------------------------
    if(CosminInfo[playerid][Language]            == 0) SendClientMessage(playerid, COLOR_GREEN, "{00FF40}SERVER: Your message was sent to admins online! You will receive an answer if they are active at this time.");
        else if(CosminInfo[playerid][Language] == 1) SendClientMessage(playerid, COLOR_GREEN, "{00FF40}SERVER: Mesajul tau a fost trimis adminilor online! Vei primi un raspuns daca sunt admini activi in acest moment.");
        //--------------------------------------------------------------------------
        switch(CosminInfo[playerid][Language])
        {
      case 0:
      {
        format(Str, sizeof(Str), "{F81414}HELP REQUESTION: {00FFFF}%s {00FF40}need help: {00FFFF}%s", PlayerName(playerid), Reason); MessageToAdmins(COLOR_YELLOW, Str);
      }
      case 1:
      {
        format(Str, sizeof(Str), "{F81414}HELP REQUESTION: {00FFFF}%s {00FF40}are nevoie de ajutor: {00FFFF}%s", PlayerName(playerid), Reason); MessageToAdmins(COLOR_YELLOW, Str);
      }
        }
        format(ReportStr, sizeof(ReportStr), "%s\n{00FF40}#{E4EDF4}%d {FF8000}%s {E4EDF4}help request, problem: {F81414}%s", ReportStr, Player, PlayerName(playerid), Reason);
        //--------------------------------------------------------------------------
        //Reportbby[Player] = PlayerName(playerid), Reportssr[Player] = Reason;
        //--------------------------------------------------------------------------
        CosminInfo[Player][ReportedBy] = playerid; ServerInfo[Reports]++;
        //--------------------------------------------------------------------------
        foreach(new i: Player)
        {
          if(CosminInfo[i][Level] >
= 3)
          {
              ReportsCheck(i), PlayerPlaySound(i, 1057, 0.0, 0.0, 0.0), InactivityT[i] = SetTimerEx("InactivityTimer", 60000, false, "i", i);
          }
        }
    //--------------------------------------------------------------------------
        hmTimer[playerid] = gettime();
        //--------------------------------------------------------------------------
        return 1;
}

[Ajuda] Existe?

$
0
0
Boa noite guys, exite algum programa pra editar mapas que tenha jeito de trocar texturas e escrever nos obj?
Viewing all 18226 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>