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

Youtube Textdraw's [ SA-TUBE ]

$
0
0
Hello,
I've created Some youtube textdraw's using TDEditor by adri1,
Here are the pics, maybe soon i'll released it as a filterscript with some functions
__________________________________________________ __________________________________________________ _______________

__________________________________________________ __________________________________________________ _______________
I posted it so that people can also say their Idea's and thinking about this !

Bug with Streamer Plugin

$
0
0
Hi , i have a problem with streamer.

OnPlayerEditDynamicObject work on Windows, but doesn't work on Linux.

Why ?

Thank's and sorry for my english ,i'm french.

Plate

$
0
0
I get this warning maybe you guys can help me

Code:

warning 219: local variable "PBVehicles" shadows a variable at a preceding level
Code:

for(new PBVehicles = 0; PBVehicles < MAX_VEHICLES; PBVehicles++)
        {
                SetVehicleNumberPlate(PBVehicles, "Pizza");
        }

RemoveBuildingForPlayer Help Please

$
0
0
RemoveBuildingForPlayer(playerid, 4210, 1479.5625, -1631.4531, 12.0781, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1433.7109, -1656.2500, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1445.8125, -1650.0234, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.2734, -1666.2969, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1471.4063, -1666.1797, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1458.2578, -1659.2578, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1449.8516, -1655.9375, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1477.9375, -1652.7266, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1479.6094, -1653.2500, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1457.3516, -1650.5703, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1454.4219, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1467.8516, -1646.5938, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1472.8984, -1651.5078, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1465.9375, -1639.8203, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1466.4688, -1637.9609, 15.6328, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1449.5938, -1635.0469, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1467.7109, -1632.8906, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1465.8906, -1629.9766, 15.5313, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1472.6641, -1627.8828, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1479.4688, -1626.0234, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 3985, 1479.5625, -1631.4531, 12.0781, 0.25);
RemoveBuildingForPlayer(playerid, 4206, 1479.5547, -1639.6094, 13.6484, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1465.8359, -1608.3750, 15.3750, 0.25);
RemoveBuildingForPlayer(playerid, 1229, 1466.4844, -1598.0938, 14.1094, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1480.6094, -1666.1797, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1488.2266, -1666.1797, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1486.4063, -1651.3906, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1491.3672, -1646.3828, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1493.1328, -1639.4531, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1486.1797, -1627.7656, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1280, 1491.2188, -1632.6797, 13.4531, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1494.4141, -1629.9766, 15.5313, 0.25);
RemoveBuildingForPlayer(playerid, 1232, 1494.3594, -1608.3750, 15.3750, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1504.1641, -1662.0156, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1504.7188, -1670.9219, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 620, 1503.1875, -1621.1250, 11.8359, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1501.2813, -1624.5781, 12.3984, 0.25);
RemoveBuildingForPlayer(playerid, 673, 1498.3594, -1616.9688, 12.3984, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1508.4453, -1668.7422, 22.2578, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1505.6953, -1654.8359, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1508.5156, -1647.8594, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 625, 1513.2734, -1642.4922, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1258, 1510.8906, -1607.3125, 13.6953, 0.25);
RemoveBuildingForPlayer(playerid, 1229, 1524.2188, -1673.7109, 14.1094, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1524.8281, -1647.6406, 16.4219, 0.25);



I'm trying to restore a hole in the floor.
I want to remove only the object like the tree in that hole and keep the floor.

/admins not working properly

$
0
0
Code:

CMD:admins(playerid, params[])
{
        new online, astring[256],string[50];
        if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
        for(new i = 0, j = GetPlayerPoolSize(); i <= j; i++)
        {
                if(PlayerInfo[i][pAdmin]) online ++;
        }
        if(online == 0) return SendClientMessage(playerid, COLOR_GREY, "- Theres no admins online -");
        format(string, sizeof(string), "- NY:RP Admins (%d Online) -", online);
        SendClientMessage(playerid, COLOR_LIGHTRED, string);
        for(new x = 0, j = GetPlayerPoolSize(); x <= j; x++)
        {
                if(PlayerInfo[x][pAdmin])
                {
                        format(astring, sizeof(astring), "{A35346}Name: {FFFFFF}%s{FFFFFF} | {A35346}Admin Level: {FFFFFF}%s (%d){FFFFFF} | {A35346}Admin Duty:{FFFFFF} %s |", RPN(x), RPALN(x), PlayerInfo[x][pAdmin], ADSTAT(x));
                        SendClientMessage(playerid, COLOR_WHITE, astring);
                }
        }
        SendClientMessage(playerid, COLOR_YELLOW, "Do not PM admins! Use /report & before reporting use /rules.");
        return 1;
}

I see 1 online admin but astring is not showing. If other admins connect, its showing only them..
Why this is happening? Help..

RevolutionX DM/Stunt/Race/Minigames

$
0
0
RevolutionX
IP: 164.132.49.24:7789
Website: http://revolutionxserver.com

About

Who We Are
Founded back when SA-MP was just getting started, RevolutionX has always been a server that lets players explore the world of Grand Theft Auto like never before. The server offers endless ways to entertain yourself. This includes minigames, stunts, deathmatching, races, and so much more.

Feature Highlights

Race with your friends
Compete with your friends in a friendly race, or join one of the death races where no rules exist. In death races, your car is equipped with a cannon so you can destroy the competition.

Minigames
Offering more than 50+ minigames for our players, we have plenty of them to choose from. Take on a team deathmatch, play a capture the flag, or join a survival minigame.

More games include:
  1. gun specific games like minigun deathmatch and more
  2. capture the flag
  3. jetpack minigame
  4. find easter eggs around the map

VIP Package

Upgrade your game play, for no cost at all. Players who stick around receive VIP, which allows for race building, object building, and more.




MYSQL - NO LOAD PLAYER DATA

$
0
0
Hi People! How to fix the mysql R41-2 CHARACTER DATA SAVE AND LOAD??


[MYSQL R41-2]


SUCCESFULLY REGISTERED ACCOUNT CODE:




Code:

new escape[128]; mysql_escape_string(query,escape);
                format(query,sizeof(query),"INSERT INTO players (IP,Name,Password,Properties,RegDate,LogDate,Admin,JatekosPenz,JatekosSzint,PosX,PosY,PosZ,JatekosInti,JatekosOles,JatekosHalal,JatekosOra,JatekosPerc,JatekosMPerc,JatekosSkin) VALUES ('%s','%s',MD5('%s'),'%s','%s','%s',%d,%d,%d,%f,%f,%f,%d,%d,%d,%d,%d,%d,%d)",
                pIP(playerid),
                pName(playerid),
                password,
                properties_string,
                GetFormatedDate(),
                GetFormatedDate(),
                0,
                1000,
                1,
                1753.3008,
                -1894.0869,
                13.5572,
                0,
                0,
                0,
                0,
                0,
                0,
                26);

                mysql_tquery(SQL,query);
                MSG(playerid,""COL_GREEN"(( User registered sucesfully. ))");
                PlayerPlaySound(playerid,1058,0.0,0.0,0.0);
                ShowLoginDialog(playerid,PHASE_USERNAME);

Code:

stock LoadPlayer(playerid)
{
    cache_get_value_int(0, "ID", pInfo[playerid][pID]);
    cache_get_value_name_int(playerid, "Admin", pInfo[playerid][pAdmin]);
    cache_get_value_name_int(playerid,"JatekosPenz", pInfo[playerid][pJatekosPenz]);
    cache_get_value_name_int(playerid, "JatekosSzint", pInfo[playerid][pJatekosSzint]);
        cache_get_value_name_float(playerid, "PosX", pInfo[playerid][PosX]);
        cache_get_value_name_float(playerid, "PosY", pInfo[playerid][PosY]);
        cache_get_value_name_float(playerid, "PosZ", pInfo[playerid][PosZ]);
        cache_get_value_name_int(playerid, "JatekosOra", pInfo[playerid][pJatekosOra]);
        cache_get_value_name_int(playerid, "JatekosPerc", pInfo[playerid][pJatekosPerc]);
        cache_get_value_name_int(playerid, "JatekosMPerc", pInfo[playerid][pJatekosMPerc]);
        cache_get_value_name_int(playerid,"JatekosOles", pInfo[playerid][pJatekosOles]);
        cache_get_value_name_int(playerid,"JatekosInti", pInfo[playerid][pJatekosInti]);
        cache_get_value_name_int(playerid, "JatekosHalal", pInfo[playerid][pJatekosHalal]);
        cache_get_value_name_int(playerid, "JatekosSkin", pInfo[playerid][pJatekosSkin]);
        return 1;
}

Code:

stock SavePlayer(playerid)
{

                format(query,sizeof(query),"UPDATE players SET LogDate = '%s', Admin = %d, JatekosPenz = %d, JatekosSzint = %d, PosX = %f, PosY = %f, PosZ = %f, JatekosInti = %d, JatekosOles = %d, JatekosHalal = %d, JatekosOra = %d, JatekosPerc = %d, JatekosMPerc = %d, JatekosSkin = %d, WHERE ID = %d",
                GetFormatedDate(),
                pInfo[playerid][pAdmin],
                pInfo[playerid][pJatekosPenz],
                pInfo[playerid][pJatekosSzint],
                pInfo[playerid][PosX],
                pInfo[playerid][PosY],
                pInfo[playerid][PosZ],
                pInfo[playerid][pJatekosInti],
                pInfo[playerid][pJatekosOles],
                pInfo[playerid][pJatekosHalal],
                pInfo[playerid][pJatekosOra],
                pInfo[playerid][pJatekosPerc],
                pInfo[playerid][pJatekosMPerc],
                pInfo[playerid][pJatekosSkin],
                pInfo[playerid][pID]);
                mysql_tquery(SQL,query);
        // Reset Enums későbbiekben.
        ResetPlayerVariables(playerid,1);
        return 1;
}

help.

$
0
0
How i want to make a room with limit of player,i mean exp;the limit of the room is 6 and the 7 player cannot enter the room

DIALOG_STYLE_TABLIST_HEADERS

$
0
0
Hi people! how to edit script dialog_style_tablist_headers formatum?

THANK YOU!! :)


format( msg, 128,"DB\t\tName");


DB AND NAME WERE

code:
Code:

stock ShowItems(playerid)
{
        new msg[128],dialogstr[3000],bool:c;
        format( msg, 128,"DB\t\tName");
        strcat(dialogstr,msg);
        for(new i; i<MAX_ITEMS; i++)
        {
            if(!CompareEx(ItemName[playerid][i],"Empty"))
            {
                c = true;
                        format(msg,128,"\n%d\t\t%s",ItemAmount[playerid][i],ItemName[playerid][i]);
                        strcat(dialogstr,msg);
                }
        }
        if(c != false) ShowPlayerDialog(playerid,ITEM_DIALOG,DIALOG_STYLE_LIST,"Inventory",dialogstr,"OK","No");
        else SendClientMessage( playerid, -1, "Empty slot" );
        return 1;
}

Text Problem.

$
0
0
Hi sa-mp.com , i have a problem with 3dtextlabel car

I made a system of plate with 3dtext this is source OnGameModeInit

LoadCar();
for(new h = carsonserver; h < sizeof(CarInfo); h++)
{
CreateVehicle(CarInfo[h][cModel],CarInfo[h][cLocationx],CarInfo[h][cLocationy],CarInfo[h][cLocationz]+1.0,CarInfo[h][cAngle],CarInfo[h][cColorOne],CarInfo[h][cColorTwo],60000);
LoadComponents(h);
format(TextCar, sizeof(TextCar), "%s-%s-%s", CarInfo[h][cPlate1], CarInfo[h][cPlate2], CarInfo[h][cPlate3]);
TextUpCar[h] = Create3DTextLabel(TextCar, 0x33AAFFFF , 0.0, 0.0, 0.0, 25, 0, 1);
Attach3DTextLabelToVehicle(TextUpCar[h], h, 0.0, 0.0, 0.1);
}

The text appears but the house text disappears http://imgur.com/a/gE4aX

when I remove from OnGameodeInit Attach3DTextLabelToVehicle and Create3DTextLabel house text appears when disappears car text

How to open barrier like this?

$
0
0
How I can open barrier like this?

SAMP Keeps Refreshing Server List And then crashes

$
0
0
When I open up SAMP and click on the internet tab to view servers it starts loading some in the list but then refreshes and starts loading them again from scratch, if I allow this to go on about 4 times it crashes making searching for servers basically impossible.

I have done a complete reinstall of the game along with SAMP and can't understand what the problem is as it was working a few days ago. I haven't really changed much either.

Any feedback is much appreciated.

Cannot crate car type bug

$
0
0
What happens is is sometimes the game decides to not load a specific car type, and my game always cries when this happens. What I mean by that is that it doesn't generate specific car types (420 - the taxi - WHICH I HAVE NO MODS RELATED TO) so I don't know why this happens. I'm still able to play, but at great risk of crash if I respawn because sometimes the car error messages flood my chat until the game crashes.

Also, if I enter the game without an anti-crasher, it always crashes upon start-up - here's the error message for you tech savvy people:



SA-MP 0.3.7
Exception At Address: 0x0054F1E4
Base: 0x03AE0000

Registers:
EAX: 0x000078D8 EBX: 0x00000000 ECX: 0x00000000 EDX: 0x0F0E5028
ESI: 0x000078D8 EDI: 0x00000001 EBP: 0x0177EFCC ESP: 0x0177EE44
EFLAGS: 0x00210246

Stack:
+0000: 0x00532A99 0x000078D8 0x00000000 0x00542286
+0010: 0x00000001 0x000078D8 0x00000000 0x000078D8
+0020: 0x00000000 0x00000000 0x00000000 0x0177EE90
+0030: 0x0083C976 0xFFFFFFFF 0x006D5F34 0x00000001
+0040: 0x000078D8 0x00000000 0x000078D8 0x0177EEC4
+0050: 0x00848706 0xFFFFFFFF 0x006BF45C 0x00000002
+0060: 0x00000001 0x000001CF 0x0177EFCC 0x00000000
+0070: 0x000078D8 0x00000000 0x00000000 0x00000000
+0080: 0x0177EEE0 0x00848394 0xFFFFFFFF 0x0042151B
+0090: 0x000001CF 0x00000002 0x000001CF 0x0177EF08
+00A0: 0x0083741E 0x00000002 0x00432113 0x000078D8
+00B0: 0x00000002 0x00000001 0x04229D90 0x00000000
+00C0: 0x0177EF1C 0x0177EF6C 0x008374BB 0xFFFFFFFF
+00D0: 0x00467B06 0x000001CF 0x45184480 0x4500C985
+00E0: 0x4125C155 0x00000000 0x00000001 0x000000A5
+00F0: 0x00000000 0x00000000 0x00000000 0x00000000
+0100: 0x00000000 0x00000000 0x00000000 0x00000000
+0110: 0x45184480 0x4500C985 0x4125C155 0x000000C0
+0120: 0x04220000 0x000000B8 0x0177EFBC 0x00837D7C
+0130: 0xFFFFFFFF 0x00469EF7 0x000000A5 0x0177EFF0
+0140: 0x03B8BCAE 0x03B8BE64 0x000001CF 0x00000001
+0150: 0x00000000 0x03B8BCAE 0x03B8BE64 0x000001CF
+0160: 0x4125C155 0x00000000 0x03BBAF73 0x00000001
+0170: 0x0177EF8C 0x0177E884 0x0177F050 0x03B95D64
+0180: 0x03BBADB0 0x00000000 0x1DF6A5F8 0x03B91F9B
+0190: 0x03BBAF6C 0x000001CF 0x00000000 0x40A30890
+01A0: 0xA0000000 0x40A01930 0xA0000000 0x4024B82A
+01B0: 0x0177F008 0x000001CF 0x00000001 0x0177F348
+01C0: 0xFFFFFF01 0x00000000 0x1DF6A5F8 0x3F63FDC7
+01D0: 0x0177F050 0x03B95416 0x04220000 0x00000000
+01E0: 0x03B9541B 0x000001CF 0x000000B8 0xFFFFFF01
+01F0: 0x00000000 0x0177F028 0x1DF616AC 0x0177F084
+0200: 0x03B95D64 0x03BBDBC0 0xFFFFFFFF 0x0177F084
+0210: 0x03BB26F8 0x00000000 0x03B7B8FC 0x000001CF
+0220: 0x45184480 0x4500C985 0x4125C155 0x43A23B7B
+0230: 0x00000001 0x00000000 0x1DEF0A28 0x0177F0C4
+0240: 0x0177F218 0x03BB257B 0x00000000 0x03AFB5EB
+0250: 0x1DF6A5F8 0x45184480 0x4500C985 0x4125C155
+0260: 0x43A23B7B 0x00000000 0x1DF30348 0x1DEF0A28
+0270: 0x03DDB6A0 0x0177F0C4 0x1DF30348 0x0177F22C

SCM Op: 0xA5, lDbg: 1 LastRendObj: 626

Game Version: US 1.0

State Information: Ped Context: 0
P0 (0,0)


Thanks for any help I receive, it's much appreciated.

textdraw text aligment

$
0
0
Hey

I tried to make a dynamic menu like gvc's, but i stuck at the text aligment part of the system.
How is that possible, when there's a ' , ' in the string, the string after the comma will jump to the right side of the textdraw.

You can see the list there


This is the menu


And this is my version of the dynamic menu


So.. what is the easiest way to make this?

[Ajuda] Não muda skin

$
0
0
Galera , to tentando fazer um cmd propio aqui de setar skin mais não ta dando certo

simplesmente não acontece nada !


Code :


Code:

        CMD:setarskin(playerid, params[])
{
        new para1,string[128], level;
        {
        if(sscanf(params, "ud", para1, level))
        {
                SendClientMessage(playerid, BRANCO, "USE: /setskin [playerid] [skin id]");
                return true;
        }
    if(level > 299 || level < 1)
        {
                SendClientMessage(playerid, BRANCO, "[{FF0000}!{FFFFFF}]Skin Não Válida");
                return true;
        }
        if (DadosJogador[playerid][ADMIN_NIVEL] >= 3)
        if(DadosJogador[playerid][VERIFICAR_MODO_ADMIN] != 1 && DadosJogador[playerid][ADMIN_NIVEL] <=5)
        return SendClientMessage(playerid, BRANCO, " Você não pode usar este comando, pois não está em modo trabalho!");
        if(IsPlayerConnected(para1))
        {
        if(para1 != INVALID_PLAYER_ID)
          {
    SetPlayerSkin(playerid, level);
    DadosJogador[para1][SKIN_JOGADOR] = level;
    format(string, sizeof(string), "O Admin %s Mudou sua Skin para %d!", PlayerNick(playerid),PlayerNick(para1),level);
        SendClientMessage(para1, BRANCO, string);
        }
        }
        }
        return 1;
}


Ajudem pfv

Converter distance

$
0
0
Hello guys! I work for a trucker job system and i need to convert metres in kilometres. ex: 1200 metres = 1.2 km.

I don't really know how can I do that, to create a public,stock or something for calculating metres in km.

If someone want to help me, I will be thankful.

cache_get_field_content_int

$
0
0
Code:

../gamemodes/VehicleSystem.pwn(781) : error 017: undefined symbol "cache_get_field_content_int"
Can anyone help me ?

[Projeto] Divulga SAMP

$
0
0
Bem pessoal como muitos estão fazendo alguns sites para ajudar na divulgação de servidores não listados eu estava pensando em uma ideia e eu precisava de um Chat público para o site, só que os chats que eu vejo como o Xat.com não me agradam nenhum pouco, quem tiver alguma sugestão de chats públicos que vocês conhecem deixem ai :clucker:

Obs: vi alguns chats no GitHub/Codepen e não era bem o que precisava.. estava pensando em algo meio que simples de base como este: https://bootsnipp.com/snippets/featured/simple-chat lembrando quero um público

Function Bugs.

$
0
0
Cheers,

I have a Cooldown and Interest Timer in my Server.
Its Timer Works well but when function executes and when there are more than 10 players in server.
It starts spamming..

Here is the codes:
PHP Code:

public CooldownTimer(playerid)
{
    new 
msg[120];
    if(
Player[playerid][playerWanted] > )
    {
        
Player[playerid][playerWanted]--;
        
format(msg,sizeof(msg),"Your wanted level has been reduced to %d.",Player[playerid][playerWanted]);
        
SendClientMessage(playerid,COLOR_YELLOW,msg);
        
setWanted(playerid,Player[playerid][playerWanted]);
        return 
1;
    }
    else
    {
        
TextDrawHideForPlayer(playeridGM[loadObjectTD][0]);
    }
    return 
1;


and here is the interest timer code:
PHP Code:

public InterestTimer(playerid)
{
    new 
giveintr,deduction,msg3[100];
    
Player[playerid][interestTimer]++;
    
//SendClientMessage(playerid,COLOR_YELLOW,"DEBUG: ID 1");
    
if(Player[playerid][interestTimer] >= 10)
    {
         
deduction 10000;
         
giveintr Player[playerid][moneyBank]/deduction;
         
Player[playerid][interest] = Player[playerid][interest] + giveintr;
         
format(msg3,sizeof(msg3),"You have recieved your interest payment of $%s. Head to nearest local bank to collect it.",FormatNumber(giveintr));
         
SendClientMessage(playerid,COLOR_YELLOW,msg3);
         
Player[playerid][interestTimer] = 0;
         return 
1;
    }
    return 
1;


Thnx..

[Ajuda] SKIN

$
0
0
Estou com um problema, nos comandos "/skin" e "/setskin".

Relatório do problema: O Comando é executado, mas não seta a skin que eu quero, ou trava no sscanf(mensagem de retorno) ou não carrega a skin.

Funções:

PHP Code:

CMD:setskin(playeridparams[])
{
    if(
Player[playerid][pAdmin] < 3naopode
    
{
        new 
id ,skindico[60], dico1[60], dico2[60];
        if(
sscanf(params"us"skin)) return SendClientMessage(playerid, -1,"{FFA500}[CORRETOR]:{FFFFFF}Use: /setskin [id] [id da skin]");
        if(
skin 299 || skin 0) return SendClientMessage(playerid, -1"{ff0000} ERRO: ID Inválido, somente válidos 0 - 299");
        
format(dicosizeof(dico),"{00BFFF}[SERVER]{FFFFFF}: O %s %s setou a skin do %s"adminlvl ,Nome(playerid), Nome(id));
        
SendClientMessageToAll(-1dico);
        
format(dico1sizeof(dico1), "{00BFFF}[SERVER]{FFFFFF}: Sua skin foi setada para %d pelo %s %s"skinadminlvlNome(playerid));
        
SendClientMessage(id, -1dico1);
        
format(dico2sizeof(dico2), "{00BFFF}[SERVER]{FFFFFF}: Você setou o skin do player %s para %d"Nome(id), skin);
        
SendClientMessage(playerid, -1dico2);
        
SetPlayerSkin(idskin);
    }
    return 
1;
}

CMD:skin(playeridparams[])
{
    new 
skindico[50];
    if(
sscanf(params"u"skin)) return SendClientMessage(playeridCOR_ERRO"ERRO: Utilize /skin [id da skin]");
    if(
skin 299 || skin 0) return SendClientMessage(playeridCOR_ERRO"ERRO: ID de skin válidos de 0 até 299");
    
format(dicosizeof(dico), "{00BFFF}[SERVER]{FFFFFF}: Sua skin foi alterada para o id: %d"skin);
    
SendClientMessage(playerid, -1dico);
    
SetPlayerSkin(playeridskin);
    return 
1;


Viewing all 18226 articles
Browse latest View live


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