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

[C++] SFSE • Stunt/MiniGames/Race/DM/Derby/Gangs/CnR/Fun

$
0
0
Hello!

On the hunt for an all-action SA:MP server with a wide array of features and lots of players to have fun with? San Fiero Stunt Evolution (or, SFSE) might just be the server you've been looking for! Launched in 2010, this is a server you know isn't going to disappear over night - a server you can build up friends, statistics and fun with, without fear of it disappearing! We're also listed on the SA:MP Hosted Tab, making us a cut above the others with plenty of people to play with! Our gamemode is also written in the C++ programming language, giving us a boost in performance and scalability of features.

Sounds good, right? Here's a few more reasons to check us out...
  • Freeroam, and lots of it!
  • Variety of Minigames! They include:
    * Demolition derby
    * Fallout
    * Maze
  • All the deathmatch you could ever want!
    * Server sided damage, forked from weapon-config and adjusted to perfection.
    * Special Minigun, Battlefield, Deathmatch Island & Gungame areas, to name a few...
    * 1 vs 1 "duel" system and a variety of maps
    * Ability to change your Fight Style
    * A collection of pre-defined and personalized Weapon Sets
    * Bounties - become a hitman!
  • Tonnes of vehicle commands
    * Spawn any vehicle of your choice
    * Change its Color, attach NOS, Hydraulics, Trailers & much more!
    * A head-up Speedometer - toggle between MPH and KPH
    * Enable & disable collisions, Auto Fix (God)
    * And lots of other weird and wonderful things you wouldn't believe existed...
  • Shortcuts galore!
    * Flip your vehicle (NUMPAD 4 or NUMPAD 2)
    * Customizable Speed Boost (CTRL)
    * Return to your previous vehicle (MMB)
    * Bounce (H)
    * Spawn a ramp (ALT)
  • Plenty of fun and quirky features
    * Fly as if you were Superman! (/superman)
    * Personalize your character with Glasses (/glasses)
    * Break out a number of Toys, in positions of your choice
  • Buy & Sell Houses
  • Be the boss of your own Gang!
    * Create / edit / delete
    * Ability to invite other players
    * Set their rank, each with its own set of permissions
    * Start Gang Wars
  • ...and much more!
Enough talking - come and join us!

Server IP: play.SF-SE.net:7777 or 188.226.158.59:7777
Website: https://sf-se.net/
Forum: https://sf-se.net/forum/

Cheers!

Derby:




Fallout:






Maze:




Skydive:




Battlefield:


never felt so beter.... y_classes?

$
0
0
Code:

#include    <a_samp>
#include    <YSI\y_classes>





main()
{

}

public OnGameModeInit()
{

}

public OnGameModeExit()
{

}

Quote:

D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(144) : error 001: expected token: ")", but found "("
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(184) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(187) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(191) : error 029: invalid expression, assumed zero
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(194) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(196) : error 021: symbol already defined: "Debug_Print0"
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(202) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(205) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(208) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(211) : error 010: invalid function or declaration
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(214) : error 021: symbol already defined: "CallRemoteFunction"
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(219) : error 054: unmatched closing brace ("}")
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(221) : error 054: unmatched closing brace ("}")
D:\3.10.8\pawno\include\YSI\..\YSI_Visual\y_classe s/multiclass.inc(223) : error 010: invalid function or declaration
D:\3.10.8\gamemodes\LosSantos.pwn(16) : warning 209: function "ScriptInit_OnGameModeInit" should return a value
D:\3.10.8\gamemodes\LosSantos.pwn(21) : warning 209: function "ScriptInit_OnGameModeExit" should return a value
D:\3.10.8\gamemodes\LosSantos.pwn(22) : warning 203: symbol is never used: "D"
D:\3.10.8\gamemodes\LosSantos.pwn(191) : warning 203: symbol is never used: "classLeft"
Pawn compiler 3.10.8 Copyright (c) 1997-2006, ITB CompuPhase


14 Errors.
why i mean why, since i got an idea to build it. and plan went to trash when i saw this

Missions System

$
0
0
HI!

Wich is the best plugin/include for making a mission system with actors?

Zone System

$
0
0
Good day / afternoon / night ... I come to place an order, I do not know if I'm in the correct xd section, but I want a system to create Safe Zones (EYE: Not conquerable) Safe areas, since any user can use weapons in Areas such as: Hospitals, City Hall Etc.

[Ajuda] CODE BUGANDO

$
0
0
Galera, eu fiz um simples code de action pra minha gm de rpg, porém estou com alguns problemas que não cinsigo identificar onde ficar esses erros.. Seguinte! Quando seto a variável no Create3DTextLabel da uma warning que fico sem intender.. Esse é apenas um dos erros.. Já outro é que não consigo aumentar a coordenada Z do Create3DTextLabel, alguém pode me ajudar ? :eek:

Obs. Quando aumento a coord Z, o label sempre some..

PHP Code:

// Topo
new Traficante[1];
new 
FloatSpawnAction[1][4] =
{
    {
1270.5382, -2020.104259.11882.0337}
};

// OnGameModeInit
for(new 0sizeof(SpawnAction); ++ i)
{
        
Traficante[0] = CreateActor(293SpawnAction[i][0], SpawnAction[i][1], SpawnAction[i][2], SpawnAction[i][3]);
        
Traficante[0] = Create3DTextLabel("Armando Sales", -1SpawnAction[i][0], SpawnAction[i][1], SpawnAction[i][2], 10.001); // da warning aqui quando copilo, só acontece quando seto a variável..
        
ApplyActorAnimation(Traficante[i], "DEALER""DEALER_IDLE_01"4.101111);


The Death Warfare 4 Community - SWAT VS TERRORISTS [TDM][Hosted Tab][0.3.7]

$
0
0

Server IP: 5.196.162.103:7777
Website: www.sampdw4.net
UCP: www.sampdw4.net/ucp
Forum: www.sampdw4.net/forum

Intro

Since 2018 started, we started establishing the Death Warfare 4 community, which is pretty much successful. Our current server is based on the famous mode "SWAT vs Terrorists" with modern gameplay experience and lots of features, you'll have a lot of fun in our simple community.

We do have a UCP, advanced forums and a website. Pretty much everything a community would need to run smoothly. Our servers are running 24/7 without interruptions, security leaks or DDoS attacks in any means.

Our staff members are active 24/7 under the supervision of the management team who ensure the staff members are doing their best, our goal is providing the safest and yet the best gameplay experience.


General Features

  • Advanced Login / Registration system based on MySQL.
  • Multiple server intros (incl. random music).
  • Many teams: TERRORISTS, SWAT, CIA, FBI, ARABIA, ...
  • Special divisions for the SWAT team and 10 classes for the rest of teams.
  • Advanced anti-cheat script.
  • Multiple skins per team.
  • Different weapon sets.
  • Advanced weapon shop.
  • In-game special V.I.P shop & credits system.
  • Advanced classes system.
  • XP system (harder than score).
  • Special VIP fortress (as big as Tierra Robada!).
  • Animations and shortcuts.
  • A detailed tutor upon registration.
  • A huge list of player, general and special commands.
  • Advanced event system.
  • PUBG mode (starts by administrators).
  • Capture The Flag.
  • Race system.
  • Prototype system.
  • Advanced inventory system.
  • Items drop/pickup.
  • Weapons drop/pickup.
  • Capture zones, assist capture, ...
  • Advanced statistics (/stats),
  • Radio system.
  • S.W.A.T Command Center.
  • Custom death animations.
  • Missions system (resets everyday).
  • Teleport points at some bases.
  • Advanced rank system with rank abilities.
  • Death match system.
  • Zombie, tank wars and RC modes included in DM.
  • Clan system feat. clan wars.
  • Clan base system with clan armor point.
  • Advanced achievements (with 3 versions: bronze, silver & gold).
  • Laser system and weapon toys.
  • Player settings.
  • Duel system with rematch and RC duel features (available in /duel).
  • Details for commands in /cmds.
  • Knife throwing feature for VIPs (target players with knife!)
  • Advanced rocket drop system (for rustler and Nevada).
  • Submarines that can be driven and used to attack enemies.
  • Spree system with spree bonus.
  • Squads system.
  • Advanced Anti Aircraft Vehicles that can target vehicles in air.
  • Nuclear system.
  • Advanced anthrax system: Cropdusters can be used to spread anthrax gas.
  • Revenge kill.
  • Actors at shops.
  • First blood system.
  • And many more, discover them yourself!

Player not receiving prompt

$
0
0
When a player killed by another player is killed by another normal player they should get a prompt to call 112 for the police but it's not working. Could someone take a look at this piece of code and give me some suggestions on what could be the problem ?

Code:

public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
    {
        pInfo[killerid][pKills]++;
        if(!(IsACop(killerid) || IsAMember(killerid) || pInfo[playerid][pJailed] > 0 || pInfo[playerid][pAJailed] > 0 || Iter_Contains(Paintp, playerid) || pInfo[killerid][pMember] == 8 || vwp[playerid] == pInfo[playerid][pMember] || pInfo[playerid][pDuel] < INVALID_PLAYER_ID || (Event_Pos[0] == 0.0 && IsPlayerInRangeOfPoint(playerid, 140.0, Event_Pos[0], Event_Pos[1], Event_Pos[2]))))
        {
            pInfo[playerid][aVar][64] = killerid, pInfo[playerid][aSpam][7] = gtm+60;
            format(stmsg[playerid], 110, "Ai fost omorat de %s, ai 60 de secunde la dispozitie sa-l reclami folosind /call 112.", GetName(killerid));
            SendClientMessage(playerid, 0x60BF61FF, stmsg[playerid]);
        }
        return 1;
}

Death spawn team

$
0
0
How do I make one of these team die, send them with a spawninfo to what I leave here below and get the skin 230, 233, 299

I explain how I can make when the player of some of these team (code below) dies send them to the coordinates of the spawninfo and apart from a skin random of the ones mentioned


Code

1: skin random 230, 233, 299 when dying
2: and also that when dying spawnee with a SetSpawnInfo I leave it in the code
PHP Code:

     if(dialogid == 9999)
     {
        if(
response)
        {
                 if(
listitem == 0//Dragons
                 
{
                         
SetSpawnInfo(playerid0179324.6891,1126.8384,1083.8828,142.340824,9999924,9999924,99999);
                         
SetPlayerColor(playeridCOLOR_DRAGONS);
                         
SetPlayerInterior(playerid5);
                         
SetPlayerHealth(playerid100);
                         
SpawnPlayer(playerid);
                 }
                 if(
listitem == 1//Templarios
                 
{
                         
SetSpawnInfo(playerid1206760.3945,1441.3341,1102.7031,120.555824,9999924,9999924,99999);
                         
SetPlayerColor(playeridCOLOR_TEMPLARIOS);
                         
SetPlayerInterior(playerid6);
                         
SetPlayerHealth(playerid100);
                         
SpawnPlayer(playerid);
                 }
        }
     } 


[Ajuda] /veh x /vvv

$
0
0
me ajudem pf ?


Exemplo: O /veh cria veiculos normais para qualquer player, o /vvv cria qualquer veiculo para os admins.

Se eu der /veh e der /rtc(Respawnar Todos Veiculos) o meu veiculo respawna normalmente.

Se eu der /veh e /vvv e dps /rtc so respawna o veiculo do /vvv.

Outra coisa tbm, eu queria por assim, se eu der /vvv posso criar qualquer veiculo msm se for proibido para min.

Code:

        if(strcmp(cmd, "/vvv", true) == 0)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, -1, "Você não pode está em um veiculo");
            return 1;
        }
        new IDCar;

        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, -1, "{7A00EC}[USO CORRETO]: {FFFFFF}/vvv [id]");
            return 1;
        }
        IDCar = strval(tmp);
        if(IDCar >= 400 && IDCar <= 611)
        {
            new
            v,
            Float:P[4];
            VeiculoVeh[playerid]=1;
            GetPlayerPos(playerid, P[0], P[1], P[2]);
            GetPlayerFacingAngle(playerid, P[3]);
            VeiculoVeh[playerid] = CreateVehicle(IDCar, P[0]+5, P[1], P[2]+1, P[3], -0, -0, 0);
            PutPlayerInVehicle(playerid, v, 0);
            SendClientMessage(playerid, -1, "*Veículo criado.");

        }
        return 1;
    }

server shows offline

$
0
0
i have a vps windows 2012. i have opened the ports and launched a test server with the grandlarc mode.
now when i added it to favorite the server shows offline. i also turned off firewall and ports opened. idk what to do
any help?

[FilterScript] Dynamic MySQL GPS System

$
0
0
Introduction
I am working for a community, the developer gave me the work to make gps system, with my ideas i made the dynamic gps sytem in which you can create or delete the locations and more.

Pictures



Commands
/agps
/gps
/gpsoff

Bugs
Code:

There are no bugs found yet, if you found please report here.
Credits
Code:

/**********************************
 *                                *
  *  Scripter:    CaptainBoi    *
  *  Version:    1.0          *
  *  Released:    07-11-2018    *
 *                                *
 **********************************/
-a_mysql - BlueG
-streamer - Incognito
-sscanf2 - maddinat0r
-zcmd - Zeex & Yashas

Download
Pastebin - Dynamic MySQL GPS System (1.0)
Github - Dynamic MySQL GPS System (1.0)
Pastebin - Dynamic MySQL GPS System (1.1)
Github - Dynamic MySQL GPS System (1.1)
Pastebin - Dynamic MySQL GPS System (1.2)
Github - Dynamic MySQL GPS System (1.2)
Pastebin [Recommended] - Dynamic MySQL GPS System (2.0)
Github [Recommended] - Dynamic MySQL GPS System (2.0)

MAC Compiler

$
0
0
During busy days I only have access to my MacOS and I thought that I would spend a bit of my time scripting. So are there any good compilers for MAC? I tried Sublime, but that didn't work out.

Also, I'm currently running my server on a VPS, are there any easier ways to see if the script I put in works? Right now I have to upload my script through FTP to my VPS every time I do something which gets quite annoying.

Name Tag

$
0
0
Hi, I use ShowPlayerNameTagForPlayer for hide name tag in game.
But I want health + armour bar don't hidden.

Can I do that? Thanks for reading.

IsPlayerFacingVehicle - my math sucks

$
0
0
Hey guys,

Im trying to improve my logic abilities, unfortunately Im stuck...

I've read a few lines of this: https://en.wikipedia.org/wiki/Atan2

But as it's said in the subject, my math sucks, so... could somebody here make the exact picture like it's on wiki, but with player standing and looking at the point?

I've made this ... (with an inspiration from https://forum.sa-mp.com/showthread.php?t=517551 )

PHP Code:

stock IsPlayerFacingVehicle(playeridFloat:vXFloat:vY){
    new
        
Float:pX    ,
        
Float:pY    ,
        
Float:pZ    ,
        
Float:pA    ,
        
Float:aftan ,
        
str[36]
    ;

    
GetPlayerPos(playeridpXpYpZ); GetPlayerFacingAngle(playeridpA);

    if(
pX !=0.0 && pY != 0.0 && pZ != 0.0){
        
aftan atan2(pX vXpY vY);
        
format(strsizeof(str), "pX: %f, pY: %f - vX: %f, vY: %f"pXpYvXvY);                 SendClientMessage(playerid, -1str);
        
format(strsizeof(str), "AFTER TAN: %f"aftan);                                             SendClientMessage(playerid, -1str);
        
format(strsizeof(str), "FACING ANGLE: %f"pA);                                             SendClientMessage(playerid, -1str);

        
pA -= aftan;

        
format(strsizeof(str), "FACING ANGLE AFTER: %f"pA);                                     SendClientMessage(playerid, -1str);
    }
    return 
false;


It's not much of a code, but I can't continue, if I don't understand that.
Those numbers I get... What are they for?

Thanks :)

edit. I know what Player Pos is... Im trying to get through big bosses. And math is one of them.

[Help] vip commands zadminO5v4

$
0
0
Hello, I need to know what are all the vip commands of the administration fs ZadminO5v4 please

textdraw model preview

$
0
0
hi , i create this textdraw with iPleomaxto Editor to show skin this skin id : 230 , in editor everything was ok but when i placed this on gamemode there was a black box background , how can i remove that ?

CODE

Text1= TextDrawCreate(555.200317, 200.106643, "LD_SPAC:white");
TextDrawLetterSize(Text1, -0.231199, 0.604798);
TextDrawTextSize(Text1, 125.599998, 113.493309);
TextDrawAlignment(Text1, 1);
TextDrawColor(Text1, -1);
TextDrawUseBox(Text1, true);
TextDrawBoxColor(Text1, 0);
TextDrawSetShadow(Text1, 0);
TextDrawSetOutline(Text1, 0);
TextDrawFont(Text1, 5);
TextDrawSetPreviewModel(Text1, 230);
TextDrawSetPreviewRot(Text1, 0.000000, 0.000000, -25.000000, 1.000000);

i worked on colors and do this on them 0x00000000 but the box not disapeared if you can help me please , +rep for helper

[Order] Anti Team Kill

$
0
0
Hi, how can I do an anti kill team system? give me the code and the steps of how to put it please I am new to this

Textdraw Problem [again:|]

$
0
0
guys i have another problem , i do this :

TextDrawSetPreviewModel(Text1, GetPlayerSkin(Winner));

but it just show CJ skin whats the problem ? (Winner = playerid on somewhere)

[Pedido] Diminuir dano da arma

$
0
0
Queria saber como faço para diminuir o dano da minigun para 0.5 ou 1 cada tiro, mas não sei como fazer.

[Ajuda] Compilador

$
0
0
Qual o melhor compilador para usar com módulos, de prefêrencia se tiver algum tutorial
Viewing all 18226 articles
Browse latest View live


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