Quantcast
Viewing all 18226 articles
Browse latest View live

truncated to 31 characters help


Screen fading on enter/exit interior

I've been searching for this already, and i did find couple of includes that make your screen fade with black color as you enter or either leave the interiors.I tried them all, but none of them worked for me.Is there any simple way i can do this through my gamemode much more easier then trying to convert my code in order to make it work?

pickup object question

Hello! Please listen to me with attention.

I have created an object:
CreatePlayerObject(playerid, x, y, z, 0, 0, 0, 300.0);

and i want to have like an pickup, when i enter object/pickup object, the object destroy, but i don't want pickup, object, how i can do this?

Passing a variable by reference using SetTimerEx

So I'm trying to pass a variable by reference to a function using SetTimerEx and I'm just getting a messy result.
I cannot find where I fucked up and I searched about this and didn't find a thing, Help?

PHP Code:

new TEST 5;

forward decrease(&n);
public 
decrease(&n)
{
    
printf("%i"n);
}
public 
OnGameModeInit()
{
    
SetTimerEx("decrease"1000true"i"TEST);
    return 
1;


Console:
PHP Code:

[22:19:2033554432
[22:19:2133554432
[22:19:2233554432
[22:19:2333554432
[22:19:2433554432
[22:19:2633554432
[22:19:2733554432
[22:19:2833554432
[22:19:2933554432
[22:19:3033554432
[22:19:3133554432
[22:19:3233554432
[22:19:3333554432 

This tone of gold

There was a server i played they gave you the option to "tune" your weapon, make it gold-plated...

I trying to make like, but i never can set a good tone like was there, like you guys can see on img:
https://i.imgur.com/BU1Gtkq.png

I never can got a good gold-plated color.
Someone could help me and another other one in forum who want to use a gold-plated here?
The more closer i did was:

PHP Code:
Code:

#define WPCOLOR_GOLD 0xFFFFAF33
Code:

SetPlayerAttachedObject(playerid, 2, GetWeaponModel(wp2), 8, -0.079999, -0.039999, 0.109999, -90.100006, 0.000000, 0.000000, 1.000000, 1.000000, 1.000000,WPCOLOR_GOLD,WPCOLOR_GOLD);

[Off] Recomendação de GM

Olá, gostaria de saber uma Game Mode que já usa MySQL tanto faz o tipo dela DM/RPG tanto faz que vocês recomendariam, uma disponível para download obviamente.

[Pedido] Base "ChamarGuerra"

Alguém pode me fazer uma base de um sistema de chamarguerra tipo o Dono da favela bota /chamarguerra ai aparece no chat Global O Dono da favela tal está chamando para uma guerra ai o outro dono de outra favela de outra facção pode bota /aceitarguerra mais assim que o dono bota aceitar guerra aparece no chat global a guerra entre a favela tal é a favela tal começara pronto é o dono da favela que uso /chamaguerra só pode usa depois de 1 hora

SE ALGUÉM PODER FAZE UMA BASE PRA MIM AGRADEÇO

[Pedido] Sistema de inventário com veículos

Boa noite procurei por ai um sistema de inventário com veículos, armas itens etc não consegui achar alguém sabe de algum ? se vocês não conhecerem nenhum podem me dar uma ajuda com a mochila do meu server? os quando guarda os itens elas vão pra la mas quando vai pegar os itens não existem mesma coisa com as armas até por isso mesmo queria outro..

Saving player data on GameModeExit

PHP Code:

public OnGameModeExit()
{
    for(new 
020i++) SendClientMessage(iCOLOR_WHITE""); // Clear the chat
    
SendClientMessageToAll(COLOR_RED"SERVER: {FFFFFF}The server is restarting. You're being kicked.");
    foreach (new 
Player)
    {
        if(
IsPlayerConnected(i) && LoggedIn[i])
        {
            
SaveUserData(i);
            
SetTimerEx("KickPlayer",500,false,"i",i);
        }
    }
    
SaveProperties();
    
mysql_close(Database);
    return 
1;


Is this gonna work? ( Saving player data)
Why do I appear online when I kick players?

[Ajuda] Como mudo o lugar da tela de login ?

Ja procurei em vários tutos na net por ai mas nunca funcionam sempre quando tento mudar vai pra essa tela e ela me joga pra essa denovo, como mudo o lugar atras da tela de login ? Alguém sabe pq ela fica me levando pra esse coordenada sempre ?

http://prntscr.com/jelaeb

[Ajuda] Checkpoint

Olá. Gostaria de tirar uma dúvida... De qual forma posso utilizar checkpoint para profissão e para um evento de corrida ao mesmo tempo? Pelo o que eu percebi, quando o de profissão está ativado e o de corrida é ativado, o CP de profissão some para dar lugar ao CP de corrida.
Obrigado desde já.

auto respawn

Is it possible to return this cmd to be automatically, to respawnall cars automatically every 5 minutes?


CMD:respawnallcars(playerid,params[]) {
if(PlayerInfo[playerid][Level] >= 6) {
for(new v=0;v<MAX_VEHICLES;v++) {
if(!IsVehicleOccupied(v))
if(IsValidVehicle(v)) {
if(VehicleInfo[v][Temp] == 0) VehicleInfo[v][respawn] = 1;
EraseVehicle(v);
}
}
return SendClientMessage(playerid,0xFFFFFFAA," All empty cars were respawned !");
} else return SendClientMessage(playerid,COLOR_BRIGHTRED,"ERROR: You need to be administrator level 6 to use this command");
}

Add Lanuage To Pawn And Samp

Hi Please Add Language utf32_persian_ci To Samp We need so much
There are thousands of Persian-language users in Samp. They can only speak Persian

Biohazard Roleplay Teaser

Get number of days between two timestamp[MySQL]

Hi guys

I need to get number of days between two timestamp.I have start and end time.For example

Code:

Start time: 1525644495
End Time: 1525644544

I need way how to get number of days.I'm try with DATEDIFF but i'm wasnt successful.

I'm try with this:

Code:

SELECT * ,FROM_UNIXTIME(DPocetak, '%Y/%m/%d') as PocLog,FROM_UNIXTIME(DKraj, '%Y/%m/%d') as KrajLog, DATEDIFF('KrajLog', 'PocLog') as days FROM `Karijera`
But i'm get this:

Quote:

PocLog = 2018/05/07
KrajLog = 2018/05/07
days = NULL //It's problem

When I try to use this:

Code:

SELECT DATEDIFF('2018/05/07, '2018/05/07') AS days;
I get
Quote:

days = 0
But for some reason it don't work in first select..

Cant login or server stops when connecting to a registered account

So basically, while testing my server on localhost.
Everything works fine, login systems etc.
The time i upload it on my server host, login doesn't work.

Logging in (localhost)
Image may be NSFW.
Clik here to view.


Logging in to my real server
Image may be NSFW.
Clik here to view.


If i connect to my real server with an unregistered account, everything works fine but if I connect with a registered account now it doesnt show up login dialog and just restart the server.

My onplayerconnect:
Code:

public OnPlayerConnect(playerid)
{
        ClanInvited[playerid] = 999;
        ClanInvitedBy[playerid] = 999;
        new string[128];
        gIncorrectPW[playerid] = 0;
        gLogged[playerid] = 0;
        format(string, sizeof(string), "%s (%d) has connected to the server. [%d/%d]", GetPlayerNameEx(playerid), playerid, Iter_Count(Player), MAX_PLAYERS);
        SendClientMessageToAll(COLOR_DONOR, string);
        SetPlayerCameraPos(playerid, 1058.593872, 1020.997863, 57.898475);
        SetPlayerCameraLookAt(playerid, 1055.358764, 1017.354858, 56.774765);
        XPtxtdraw[playerid] = CreatePlayerTextDraw(playerid, 504.000000, 80.640007, "$0000000");
        PlayerTextDrawLetterSize(playerid, XPtxtdraw[playerid], 0.645200, 1.988266);
        PlayerTextDrawAlignment(playerid, XPtxtdraw[playerid], 1);
        PlayerTextDrawColor(playerid, XPtxtdraw[playerid], -5963521);
        PlayerTextDrawSetShadow(playerid, XPtxtdraw[playerid], 0);
        PlayerTextDrawSetOutline(playerid, XPtxtdraw[playerid], 1);
        PlayerTextDrawBackgroundColor(playerid, XPtxtdraw[playerid], 255);
        PlayerTextDrawFont(playerid, XPtxtdraw[playerid], 3);
        PlayerTextDrawSetProportional(playerid, XPtxtdraw[playerid], 1);
    if(fexist(UserPath(playerid)))
        {
                INI_ParseFile(UserPath(playerid), "LoadUser_data", .bExtra = true, .extra = playerid);
                format(string, sizeof(string), "Welcome back %s, please input your password below to login.", GetPlayerNameEx(playerid));
                  ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD,"Login!",string,"Login","Quit");
        }
        else
        {
            format(string, sizeof(string), "Welcome %s to our server, please input your password below to register.", GetPlayerNameEx(playerid));
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD,"Register!",string,"Register","Quit");
        }
        TextDrawShowForPlayer(playerid, Intro[0]);
        TextDrawShowForPlayer(playerid, Intro[1]);
        mk[playerid] = 0;
        ck[playerid] = 0;
        pk[playerid] = 0;
        return 1;
}

Zone color becomes transparent

PHP Code:

GangZoneShowForAll(ZoneID[zoneid], FactionInfo[factionid][Color]); 

Makes it transparent..

FactionInfo[factionid][Color] is a string "0xFF000088"

What am I doing wrong?

DeAMX

Ðåáÿòà, âñåì ïðèâåò! Ïðîáîâàë ðàçíûå DeAMX, íè îäèí íå ïîäõîäèò, â ïëàíå ÷åãî? Íåõâàòêà ïàìÿòè, ìîä áîëüøåâàò. Äåêîìïèëèë íåáîëüøèå ñâîè ñêðèïòû, â ïðèíöèïå âîññòàíîâèòü èõ â ðàáî÷èé âèä ñìîãó. Íî íóæíî äåêîìïèëüíóòü öåëûé ìîä. Êòî-òî ìîæåò ìíå ïîìî÷ü ñ ýòèì è äîäåëàòü ïðîãó, äàáû áûëà âîçìîæíîñòü äåêîìïèëèðîâàòü ìîä? Âîçìîæíî åùå êòî-òî êàêèå-òî èäåè ïîäàñò. Ãîòîâ çàïëàòèòü çà ïîìîùü!

Ïîæàëóéñòà íå íàäî óäàëÿòü òåìó, ÿ ïûòàþñü ñâîé æå ìîä äåêîìïèëèðîâàòü, èñõîäíèêè êîòîðîãî ÿ ïîòåðÿë. Ïûòàþñü ñïàñòè ñâîé ìîä! Â ýòîì åñòü ÷òî-òî óæàñíîå? Ñïàñèáî!

[MAP]City Hall- exterior good work

[Ajuda] Tag de procurado não funciona ?

boa noite, to tentando colocar uma tag de procurado em cima do player mas não ta funcionando ? o código ta funcionando eu tenho certeza pq na minha gm anterior eu usava ele de boa, agora nessa gm não funciona o que eu faço ???

topo do gm
Code:

forward TextProcu();
ongamemodeinit
Code:

SetTimer("TextProcu", 1000, true);
fim do gm
Code:

public TextProcu()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
        new string[256];
        if(GetPlayerWantedLevel(i) > 0)
        {
            format(string,256,"||-||PROCURADO||[%d]",GetPlayerWantedLevel(i));
            SetPlayerChatBubble(i,string, COLOR_RED, 100.0, 1000);
        }
    }
}

Viewing all 18226 articles
Browse latest View live


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