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

Object Pos bug

$
0
0
Hello!
The following screen have some selected objects(all fine):


But when I test it, the objects positions is bugged:


Any solution?

NOTE: Same bug after compiling with CreateObject or CreateDynamicObject!

Comanda /rc(report chat)

$
0
0
In loc sa trimita mesajul la admin trimite de 2 ori la player.

Poza: http://imgur.com/a/KC0AH

Comanda /acr:
HTML Code:

CMD:acr(playerid, params[])
{
    new strglobal[856];
        if(PlayerInfo[playerid][pAdmin] == 0) return 1;
        new toplayerid;
        if(sscanf(params, "u", toplayerid)) return ShowSyntax(playerid, "/acr <Name/PlayerID>");
        if(ActiveReport[playerid] != 0) return SCM(playerid, COLOR_WHITE, "You're in a report right now.");
        if(toplayerid == INVALID_PLAYER_ID) return ShowSyntax(playerid, "/acr <Name/PlayerID>");
        if(HaveReport[toplayerid] == 0) return SCM(playerid, COLOR_WHITE, "This player don't have a report active anymore.");
        format(strglobal, sizeof(strglobal), "%s picked up %s's report.", GetName(playerid), GetName(toplayerid));
        SendAdmins(strglobal);
        HaveReport[toplayerid] = 0;
        ActiveReport[playerid] = 1, ActiveReport[toplayerid] = 1;
        ReportDuty[playerid] = 2, ReportDuty[toplayerid] = 1;
        ReportPlayerID[playerid] = toplayerid;
        ReportPlayerID[toplayerid] = toplayerid;
        ReportAdminID[playerid] = playerid;
        ReportAdminID[toplayerid] = toplayerid;
        format(strglobal, sizeof(strglobal), "* %s picked up %s's report.", GetName(playerid), GetName(toplayerid));
        SCM(playerid, COLOR_YELLOW2, strglobal);
        SCM(toplayerid, COLOR_YELLOW2, strglobal);
        SCM(playerid, COLOR_YELLOW2, "* You can stop this report by typing [/finishreport] in chat.");
        SCM(toplayerid, COLOR_YELLOW2, "* You can stop this report by typing [/finishreport] in chat.");
        SCM(playerid, COLOR_YELLOW2, "* You can talk with the player in chat now.");
        SCM(toplayerid, COLOR_YELLOW2, "* You can talk with the admin in chat now.");
        PlayerInfo[playerid][pReports] ++;
        return 1;
}

Comanda /rc:
HTML Code:

CMD:rc(playerid, params[])
{
        new stringuri[128], message[128], string1, string2;
        if(ActiveReport[playerid] == 0) return SCM(playerid, COLOR_WHITE, "You don't have a report active.");
        if(sscanf(params, "s[128]", message)) return ShowSyntax(playerid, "/rc <Message>");
        if(ReportDuty[playerid] == 2) string1 = ReportDuty[playerid];
        if(ReportDuty[playerid] == 1) string2 = ReportDuty[playerid];
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
                format(stringuri, 128, "* Admin %s: %s", GetName(playerid), message);
                SCM(playerid,COLOR_YELLOW,stringuri);
                SCM(string2,COLOR_YELLOW,stringuri);
        }
        else
        {
                format(stringuri, 128, "* Player %s: %s", GetName(playerid), message);
                SCM(playerid,COLOR_YELLOW,stringuri);
                SCM(string1,COLOR_YELLOW,stringuri);
        }
        return 1;
}

Help with include

$
0
0
Any ideas how could I include the file without changing the directories names?

this way is too long, mode is not reading the file.
Code:

#include "..\gamemodes\modules\fractions\firefighters\map.inc"

Object id change

$
0
0




CreateDynamicObject(19325, 2298.540039, -1907.770020, 13.271300, 0.000000, 0.000000, 0.000000);


I want to batch change the object id to something else.(19325 > 1649)
The problem is not solved by simply changing id. This is because the size does not match.
Is there any way to quickly and easily change the size of the old 19325 to fit the 1649?

All views on youtube (issue)

$
0
0
hey there.. i've a problem with main views (all the views on all my videos) on my youtube channel, it looks like it's frozen, it doesn't keep counting the views
btw those views are not mine

someone know whats happenin?

Celebrating 3 Years Birthday

$
0
0
https://www.youtube.com/watch?v=QTJ0Kk2Oo0s

Wish you all the best :) :) :)

3 Years is not a short time..

Please support us guys...

Hope we can be more great server



Be Fair, Be Happy, and Be Yourself

Be a Sportif and Equal Rivals and be a Good Enemy

preciso de ajuda!

$
0
0
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(20) : error 001: expected token: ")", but found "-identifier-"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(168) : error 001: expected token: ",", but found ";"
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(373) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
alguém sabe mim dizer como resolve esse erro?
linha 20 pbalas,
linha 168 SendClientMessageToAll(verde, string ;
linha 373 stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)

[System] Postman Job


Pawn Compiler crashes

$
0
0
Howdy!

I have been searching in my gamemode for over 2 hours now and I couldn't find any solution for this shit, I can't compile my gamemode at all.
I have tried to find a missing brackets but could not find any, I went through SA-MP Forum to find a Missing Brackets program and I found two which worked for me, both of them have the same results:

Code:

The bracket which was Opened at line number 16972 was not closed.

Number of Opening brackets : 7003
Number of Closing brackets 7002

I went to line 16972 as the program say, but nothing seems fishy, it's all fine:

PHP Code:

CMD:boss(playeridparams[])
{
    new 
string[94], mainstr[256], found 0;
    foreach(new 
Player)
    {
        if(
pTeam[i] != NO_GANG && Info[i][Skills][pTeam[i]] > 5000)
        {
            
found++;
            
format(stringsizeof(string), "{FFFFFF}%s (%d) {%06x)(%d skills)\n"GetName(i), iGetPlayerColor(i) >>> 8Info[i][Skills][pTeam[i]]);
            
strcat(mainstrstring);
        }
    }
    if(
found == 0ShowPlayerDialog(playeridWARNDIALOG_STYLE_MSGBOX"Note""{FF0000}No gangs boss found""Close""");
    else 
ShowPlayerDialog(playeridWARNDIALOG_STYLE_MSGBOX"Gang Boss"string"Close""");
    return 
1;


I removed that command to check out if it's the issue and checked the Missing Brackets program again and the results seemed fine. Tried to compile the gamemode again and it crashed ..

I tried to remove the last things I added. Same shit, crashed.

Any ideas of how I could solve this?
Thanks.

Getting "error 028 .."

$
0
0
Hello,today i was trying to use this command on my script and i get the errors :
Code:

: error 028: invalid subscript (not an array or too many subscripts): "weapons"
 : warning 215: expression has no effect
 : error 001: expected token: ";", but found "]"
 : error 029: invalid expression, assumed zero
 : fatal error 107: too many error messages on one line

Here is the command :

Code:

CMD:listguns(playerid, params[])
{
        if(PlayerInfo[playerid][pAdmin] >= 2)
        {
                new string[128], giveplayerid;
                if(sscanf(params, "i", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /listguns [playerid]");

                if(IsPlayerConnected(giveplayerid))
                {
                        new weapons[13][2], weaponname[50];
                        if(GetPVarInt(giveplayerid, "EventToken") != 0 || GetPVarInt(giveplayerid, "IsInArena") >= 0)
                        {
                                SendClientMessageEx(playerid, COLOR_GRAD2, "That player is at an event/paintball so the weapons may appear as non-server sided.");
                        }
                        SendClientMessageEx(playerid, COLOR_GREEN,"_______________________________________");
                        format(string, sizeof(string), "Weapons on %s:", GetPlayerNameEx(giveplayerid));
                        SendClientMessageEx(playerid, COLOR_WHITE, string);
                        for (new i = 0; i < 13; i++)
                        {
                                GetPlayerWeaponData(giveplayerid, i, weapons[i][0], weapons[i][1]);
                                if(weapons[i][0] > 0)
                                {
                                        if(PlayerInfo[giveplayerid][pGuns][i] == weapons[i][0])
                                        {
                                                GetWeaponName(weapons[i][0], weaponname, sizeof(weaponname));
                                                format(string, sizeof(string), "Name: %s, Ammo: %d (ID %d).", weaponname, weapons[i][1], weapons[i][0]);
                                                SendClientMessageEx(playerid, COLOR_GRAD1, string);
                                        }
                                        else
                                        {
                                                GetWeaponName(weapons[i][0], weaponname, sizeof(weaponname));
                                                format(string, sizeof(string), "Name: %s, Ammo: %d (ID %d) (non server-side).", weaponname, weapons[i][1], weapons[i][0]);
                                                SendClientMessageEx(playerid, COLOR_GRAD1, string);
                                        }
                                }
                        }
                        SendClientMessageEx(playerid, COLOR_GREEN,"_______________________________________");
                }
                else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");
        }
        else
        {
                SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");
        }
        return 1;
}

Script is from Godfather i believe.
Thank you

[MAP] Good Samaritan Hospital ~ Total replacement of Jefferson Hospital

$
0
0
I wonder if anyone did this before me. Screenshots below:
Click

[FilterScript] [JOB] Simple "Flint Country Trucking" Job

$
0
0
Introduction
Hello, my name is Angelo Brand and i think this is my first Job Filterscript. Actually i have made this about 2 month ago but i haven't post because i left samp for a moment. But now i see this script back and decide to post it here. Iam so glad if you guys like this script and maybe nextime i will make some new good stuff and then i will post it here.

How it works ?
This is an trucking mission job. You can start the mission by entering the Yankee (you can change the model of any cars you want) cars at Trucking depot, Flint Country. When u entering the car, the a message will send to you and all player. Only you have to do is go to the checkpoint to start earn money. The mission will be failed if you left or get out from the car. If you already finish the job then will give you money $10,000 (you can change this as much you want).

Trucking Location



Any Screenshot ?









Download Link

https://pastebin.com/L6n0HdD6

Cover

I think thats all the information about my first Filterscript. I hope you guys like the script and if you like and enjoy, then please give me some comment or suggestion to growing me make more better. Thanks and sorry for my bad english :D :D :D.

Help undefined..

$
0
0
undefined modelid !!help please


if(listid == skinlist)
{
if(response)
{
SendClientMessage(playerid, 0xFF0000FF, "Skin Changed");
SetPlayerSkin(playerid, modelid);
}
else SendClientMessage(playerid, 0xFF0000FF, "Canceled skin selection");
return 1;
}

[Ajuda] OnPlayerDeath

$
0
0
É Possível desativar o spawn apos a morte do player ?

Em um GM zero quando o player morre ele já respawna automaticamente, eu gostaria de saber se é possível parar essa função, existe algum tipo de parâmetro para isso ?.

quem souber desse erro mim ajuda

$
0
0
agora mim ajude com esse erro eu ja resolvi aquele

C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(217) : warning 202: number of arguments does not match definition
C:\Users\kleiton\Downloads\samp037_svr_R2-1-1_win32\gamemodes\Mikael.pwn(422) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

mim ajuda com esse agora
linha 217 if(!PlayerToPoint(2.0, playerid,1931.2430,1345.3267,9.968)) return SendClientMessage(playerid, verde, " | ERRO | Voce não esta no ponto de equipar");
linha 422 stock PlayerToPoint(Float:radi, playerid, Float, Float:y, Float:z)

[Plugin] Custom Query Flood Check

$
0
0
Custom Query Flood Check

Write custom protections against query flood



Info:
  • This plugin redirects all calls from the original query flood check function to a new function written by the server owner in PAWN.
  • Here is the original query flood check function converted to PAWN. This function is responsible for detecting flooding and for blocking queries when server is spammed with multiple packets coming from a bunch of different IPs.
  • You may tweak it or write a better flood detection algorithm.
  • Here is a list of sample protection scripts.
  • See kurta999's YSF for more info about SA-MP query mechanism.
WARNING:
  • Installing this plugin will disable the built-in query flood check, so you must your own protection!
  • Use this filterscript to reimplement the default check.
  • For better performance, write the protection directly into plugin source code to avoid AMX overhead.
  • Compatible with 0.3.7 R2-1 only.
Download:Callback:
PHP Code:

forward OnQueryFloodCheck(queryTypebinaryAddress); 
/*
 * Info:
 *  - called when a query is received
 *
 * Parameters:
 *  - queryType     : a single character corresponding to the packet identifier as explained here: http://wiki.sa-mp.com/wiki/Query_Mechanism#Opcodes
 *  - binaryAddress : IP address of requester as a 32-bit unsigned integer
 *
 * Returns:
 *  -   0 (ZERO)    : process the query
 *  - !=0 (NONZERO) : don't process the query
 *
 * Notes:
 *  - If any script returns NONZERO in this callback, then current query won't get processed.
 *  - If this callback is missing from all loaded scripts, then the plugin will **PROCESS ALL QUERIES** and will print a warning message in server log. 
 */ 

How to install:
Download the archive from Releases page and unpack it into your server directory. Then edit "server.cfg":
  • Windows:
    Code:

    filterscripts fs-original-check            # or write your own protection
    plugins samp-custom-query-flood-check.dll

  • Linux:
    Code:

    filterscripts fs-original-check            # or write your own protection
    plugins samp-custom-query-flood-check.so

dank memes in hosted tab

Need a Gamemode [Drift/RPG]

$
0
0
Hey guys.

I need a script for my server. I want a Role Play gamemode include Race and DRIFT mode. Anyone help me about that?

[Ajuda] PlayerTextDrawSetString

$
0
0
Saudações Galera

Olha me sinto ate incomodado em criar mais um tópico, mas ao que parece essas coisas só acontece comigo.
Antes de criar um tópico aqui no fórum, eu pesquiso e quebro a cabeça tentando resolver meu problema.
Estou começando agora, então me desculpem :p.

Bom eu não consigo usar a função ( PlayerTextDrawSetString ) 2x no GM, se eu usar em um TextDraw ela funciona, agora se eu usar em outro TextDraw a função já não funciona, Simplesmente o texto não aparece.

PHP Code:


// Aqui funciona
format(stringsizeof(string), " Kill : %d"pInfo[playerid][Kill]);
PlayerTextDrawSetString(playeridK_TD[playerid], string);

// Aqui não funciona
format(stringsizeof(string), " Dead %d "pInfo[playerid][Dead]);
PlayerTextDrawSetString(playeridD_TD[playerid], string); 

As duas funções (PlayerTextDrawSetString) se encontra na mesma Callback, e eu usei a mesma variável (string)
Também tentei usar variáveis diferentes entre as duas funções.

Coloquei cada uma em uma Callback e também não funciona.

se eu apagar qualquer uma das duas sempre uma vai funcionar, agora as duas juntas no mesmo script não funciona.

Alguém já se deparou com esse problema, existe alguma solução?.

Desde já agradeço.

Help with player spawn

Viewing all 18226 articles
Browse latest View live


Latest Images

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