Quantcast
Viewing all 18226 articles
Browse latest View live

MW4 Community: SWAT vs Terrorists

Image may be NSFW.
Clik here to view.

MW4 Community
SWAT vs Terrorists SA:MP Server

Server IP addresses
s1.mw4-samp.org:7847
s2.mw4-samp.org:7847

Community links
Website: https://mw4-samp.org/
Forums: https://forum.mw4-samp.org/
Discord invite: https://discord.gg/pkb5UDJ

About
SWAT vs Terrorists SA:MP server was started on 19th April 2018 following the closure of Call of Duty 4 - Modern Warfare SA:MP server which took place in the COD competition from 2015 till 2018. Since the SWAT vs Terrorists was given birth, it's been running smoothly with active staff members who dedicate their time for keeping the server as pleasant as it could ever be. We are working hard to keep the server free from bugs, well developed, active and clean from cheaters to provide a reliable gaming experience for all the players in the community.

Gameplay
A pure team death-match SA:MP server with a lot of varieties and abilities that players can unlock by playing more. Once you register, you get prompted to a tutorial which you can decide whether you wish to skip it or not, it clearly explains the basics of the game that definitely helps in understanding everything real quick. Once you have finished the tutorial and selected your team, class (or division if SWAT), preferred skin (each team has a set of skins) you get spawned in your team base by default, you can change that later in game. The game is about tactics and skill not just spawn and kill, you have to rank up by earning battle points which can be earned by in game activities to unlock special abilities and classes. Each class has an advanced/upgraded version of it that can be unlocked by earning EXP which is much harder to earn than battle points. The server has a lot of features that provides comfort for campers and pushy players, once pushy players discover campers, campers can use their skills to hide from pushy players and vice versa thus making it balanced. There are many items that can be either looted or purchased from the team shop. You can kill players and loot them or safely purchase your items from your base. That's not all, you can also capture zones for your team, every zone provides you something important for your team. For example, nuclear station allows you to use nuke against enemies, Las Venturas Airbase allows you to send airstrike over enemies, the battleship allows you to intoxicate enemies with anthrax and so on. You can also make killing streaks, once you make more, you unlock heavy weapons in the team shop (till you die) or if you're lucky enough you'll automatically get a heavy weapon. If you're not a trooper, you can be a pilot, a mechanic or whatever else you wanna be. You can train in the gym, purchase your shelter and do much more stuff. If you're losing a lot of cash, you can safely store them in your own bank account and keep a little in your wallet. You can withdraw them later from any ATM nearby. Don't like playing alone? We've got you covered with our special clan system. Purchase a clan base or any other cool perks and compete other clans with our special clan tournament system or the ordinary clan war system. You can also choose your own clan skin and weapon. If you're not a fan of clans, you're a lone wolf? We also got you covered with our special death match system and PvP - duel system (incl. RC, rematch, ..). We understand that statistics are precious to any player, that's why we try as much as possible to store as much stats as we can.. Your achievements and so on to ensure that your progress will never be lost. There are a lot more to know about the server, once you get in game, you'll figure all of em out yourself.

Argument mismatch (argument 1)

PHP Code:

if(!strcmp("511"strval(number))){
        new 
count;
        for(new 
i=0;i<MAX_PLAYERS;i++){
            if(!
IsPlayerConnected(i)) continue;
            if(
PlayerInfo[i][pJob] != JOB_TAXIDRIVER) continue;
            
SendClientMessageEx(i,COLOR_YELLOW,"[Taxi Call]{FFFFFF} %s is requesting pickup at %s (/taxicalls)"PlayerICName(playerid),GetPlayerLocation(playerid));
            
count++;
        }
        if(
count<=0) return SendClientMessage(playeridCOLOR_GREY"No Taxi Drivers are online.");
        
SendClientMessage(playeridCOLOR_YELLOW"[Taxi Service]{FFFFFF} Your call has been sent to all taxi drivers, wait until they accept.");
        
SendClientMessage(playeridCOLOR_GREY"They hung up...");
        return 
1;
    } 

I also tried
PHP Code:

if(strval(number)=="511"){
        new 
count;
        for(new 
i=0;i<MAX_PLAYERS;i++){
            if(!
IsPlayerConnected(i)) continue;
            if(
PlayerInfo[i][pJob] != JOB_TAXIDRIVER) continue;
            
SendClientMessageEx(i,COLOR_YELLOW,"[Taxi Call]{FFFFFF} %s is requesting pickup at %s (/taxicalls)"PlayerICName(playerid),GetPlayerLocation(playerid));
            
count++;
        }
        if(
count<=0) return SendClientMessage(playeridCOLOR_GREY"No Taxi Drivers are online.");
        
SendClientMessage(playeridCOLOR_YELLOW"[Taxi Service]{FFFFFF} Your call has been sent to all taxi drivers, wait until they accept.");
        
SendClientMessage(playeridCOLOR_GREY"They hung up...");
        return 
1;
    } 

still same error
Code:

error 035: argument type mismatch (argument 1)
full cmd:
PHP Code:

CMD:call(playeridparams[]) {
    new 
numberline[240];
    if(
PlayerInfo[playerid][pInjured] > 0) return SendClientMessage(playeridCOLOR_GREY"You cannot do that at the moment.");
    if(
sscanf(params"i"number)) return SendClientMessage(playeridCOLOR_GREY"Usage:{FFFFFF} /call [phone number]");
    if(
strval(number)=="511"){
        new 
count;
        for(new 
i=0;i<MAX_PLAYERS;i++){
            if(!
IsPlayerConnected(i)) continue;
            if(
PlayerInfo[i][pJob] != JOB_TAXIDRIVER) continue;
            
SendClientMessageEx(i,COLOR_YELLOW,"[Taxi Call]{FFFFFF} %s is requesting pickup at %s (/taxicalls)"PlayerICName(playerid),GetPlayerLocation(playerid));
            
count++;
        }
        if(
count<=0) return SendClientMessage(playeridCOLOR_GREY"No Taxi Drivers are online.");
        
SendClientMessage(playeridCOLOR_YELLOW"[Taxi Service]{FFFFFF} Your call has been sent to all taxi drivers, wait until they accept.");
        
SendClientMessage(playeridCOLOR_GREY"They hung up...");
        return 
1;
    }
    if(
PlayerInfo[playerid][pPhone] == 0) return SendClientMessage(playeridCOLOR_ORANGE"Error: {ffffff}You don't have a phone.");
    if(
PlayerInfo[playerid][pCash] <= 50) return SendClientMessage(playeridCOLOR_ORANGE"Error: {ffffff}You do not have $50 to call.");
    if(
number == 0) return SendClientMessage(playeridCOLOR_GREY"[Cellphone] {FFFFFF}This number isn't valid.");
    new 
id GetPlayerIDPhone(number);
    if(
id == -1) return SendClientMessage(playeridCOLOR_ORANGE"Error: {ffffff}Couldn't connect...");
    if(
CellPhone[id][InCall]<=1) return SendClientMessage(playeridCOLOR_GREY"[Cellphone] {ffffff}You received a busy tone...");
    if(
id == playerid) return SendClientMessage(playeridCOLOR_ORANGE"Error: {FFFFFF}You can't call yourself.");
    
format(linesizeof(line), "** Calling %s [%d]...**"PlayerICName(id), PlayerInfo[id][pPhone]);
    
SendClientMessage(playeridCOLOR_YELLOWline);
    
GiveMoney(playerid, -50);
    
PlayerPlaySound(playerid36000.00.00.0);
    
CellPhone[id][PhoneRinging] =1;
    
CellPhone[id][CalledBy] = playerid;
    
CellPhone[playerid][PhoneRinging] = 1;

    
format(linesizeof(line), "** Incoming call from %d...**"PlayerInfo[playerid][pPhone]);
    
SendClientMessage(idCOLOR_YELLOWline);
    
SendClientMessage(idCOLOR_YELLOW"** /p to receive the call || /h to decline the call **");
    
CellPhone[playerid][CalledBy] = id;
    return 
1;


[Ajuda] SAMP VOICE

Code Alright ?

stock Float:GetDistanceBetweenPoints(Float: x1f,Float:y1f,Float: z1f,Float: x2f,Float:y2f,Float:z2f)
{
return floatadd(floatadd(floatsqroot(floatpower(floatsub( x1f,x2f),2)),floatsqroot(floatpower(floatsub(y1f,y 2f),2))),floatsqroot(floatpower(floatsub(z1f,z2f), 2)));
}

Colors in dialog.

Hi.

Is it possible to get a color from array in dialog list item and them set the player color ?

Code:

new const Colors[] =
{
        0xFF0000AA, 0xFF4800AA, 0xFF9900AA, 0xFFFF00AA, 0xBBFF00AA, 0x55FF00AA, 0x00FFAAAA,
        0x00DDFFAA, 0x0044FFAA, 0x8000FFAA, 0xCC00FFAA, 0xFF00EEAA, 0xFFFFFFAA, 0xFFEB7BAA
};

SetPlayerTeam/GetPlayerTeam

Hello. I have not been interested in SetPlayerTeam and GetPlayerTeam for a long time. Could someone explain to me more what's going on? What is this all about?

[Ajuda] /drag bug com /arrest

Oi, eu estou tendo alguns problemas com um script e como ainda estou aprendendo, -vou precisar de uma ajuda.

Eu estou usando esse comando para arrastar (/drag)(/stopdrag) um jogador depois de ser preso pela polícia

Code:

dcmd_drag(playerid, params[])
{
        new id, string[ 128 ];
        if( sscanf( params, "u", id) )
        {
                SendClientMessage( playerid, COLOR_WHITE, "USAGE: /drag [PlayerID/PartOfName]" );
        }
        else
        {
            if( PlayerTied[id] >= 1 || PlayerCuffed[id] >= 1)
            {
                if(GetDistanceBetweenPlayers( playerid, id) < 7)
                {
                                ApplyAnimation(id,"SWEET","Sweet_injuredloop", 4.0, 1, 0, 0, 0, 0,1);
                                ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0,0,0,0,0,1);
                    PlayerInfo[id][BeingDraggedBy] = playerid;
                                format( string, sizeof( string ), "You have started to drag %s.", PlayerName(id) );
                    SendClientMessage( playerid, COLOR_LIGHTBLUE, string);
                    format( string, sizeof( string ), "* %s grabs ahold of %s and starts dragging them.", PlayerName(playerid), PlayerName(id) );
                                ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                }
                else
                {
                    SendClientMessage( playerid, COLOR_GRAD1, "You're too far away!" );
                }
            }
            else
            {
                SendClientMessage( playerid, COLOR_GRAD1, "Your target has to be either tied or cuffed." );
            }
        }
        return 1;
}

dcmd_stopdrag(playerid, params[])
{
        #pragma unused params
        new string[73];
        for( new i = 0; i < MAX_PLAYERS; i++ )
        {
            if(IsPlayerConnected( i ) && PlayerInfo[i][BeingDraggedBy] == playerid)
            {
                        format( string, sizeof( string ), "You have stopped dragging %s.", PlayerName(playerid) );
                        SendClientMessage( playerid, COLOR_LIGHTBLUE, string);
                format(string, sizeof(string), "* %s has stopped dragging %s.", PlayerName(playerid), PlayerName(i) );
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                PlayerInfo[i][BeingDraggedBy] = -1;
                ClearAnimations(playerid);
                }
        }
        return 1;
}

mais tem um probleminha, quando o jogador é preso (/arrest), ele vai para a cela e depois é automaticamente teleportado de volta para mim porque está /drag a mim, então, eu preciso que me ajudem como eu faço para não deixar usar o comando /arrest, se o jogador tiver dando /drag no suspeito.

Code:

        if(strcmp(cmd, "/arrest", true) == 0)
        {
            if(IsPlayerConnected(playerid))
                  {
                                if(IsACop(playerid) || IsAnAgent(playerid))
                                {
                                        if(IsACop(playerid) && PlayerInfo[playerid][pOnDuty] == 0)
                                {
                                    SendClientMessage(playerid, COLOR_WHITE, "You are not on Duty (10-8).");
                                    return 1;
                                }
                                new interior = GetPlayerInterior(playerid);
                                if(!IsPlayerInRangeOfPoint(playerid,8.0,1528.3715,-1677.9541,5.8906) && !IsPlayerInRangeOfPoint(playerid,8.0,1651.0934,-1694.3004,15.6094) && !IsPlayerInRangeOfPoint(playerid,8.0,398.9164,-1161.7887,1223.6608) && !IsPlayerInRangeOfPoint(playerid,8.0,246.5069,66.6402,1003.6406) && !IsPlayerInRangeOfPoint(playerid,8.0,1564.6757,-1657.3682,28.3956) && !IsPlayerInRangeOfPoint(playerid,8.0,615.19,-584.78,17.22) && interior != 10 && interior != 3)
                                {
                                    SendClientMessage(playerid, COLOR_GREY, "  You are not at an Arrest Point!");
                                    return 1;
                                }
                                tmp = strtok(cmdtext, idx);
                                if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
                                moneys = strvalEx(tmp);
                                if(moneys < 100 || moneys > 750) { SendClientMessage(playerid, COLOR_GREY, "  Price can't be below $100 or above $750!"); return 1; }
                                tmp = strtok(cmdtext, idx);
                                if(!strlen(tmp))
                                {
                                SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]");
                                return 1;
                                }
                                new time = strvalEx(tmp);
                                if(time < 2 || time > 7)
                                {
                                SendClientMessage(playerid, COLOR_GREY, "  Minutes can't be below 1 or above 7!");
                                return 1;
                                }
                                tmp = strtok(cmdtext, idx);
                                if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
                                new bail = strvalEx(tmp);
                                if(bail < 0 || bail > 1) { SendClientMessage(playerid, COLOR_GREY, "  Bail can't be below 0 or above 1!"); return 1; }
                                tmp = strtok(cmdtext, idx);
                                if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "USAGE: /arrest [price] [minutes] [bail (0 - 1)] [bailprice]"); return 1; }
                                new bailprice = strvalEx(tmp);
                                if(bailprice < 2000 || bailprice > 20000) { SendClientMessage(playerid, COLOR_GREY, "  Bail Price can't be below $2,000 or above $20,000!"); return 1; }
                                new suspect = GetClosestPlayer(playerid);
                                if(IsPlayerConnected(suspect))
                                {
                                        if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
                                        {
                                            if(PlayerInfo[suspect][pWantedLevel] < 1) { SendClientMessage(playerid, COLOR_GREY, "  Player must be at least Wanted Level 1!"); return 1; }
                                                GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
                                                GetPlayerName(playerid, sendername, sizeof(sendername));
                                                format(string, sizeof(string), "* You arrested %s.", giveplayer);
                                                SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                                                format(string, sizeof(string), "You were arrested by %s, $%d", sendername, moneys);
                                                SendClientMessage(suspect,COLOR_LIGHTRED,string);
                                                PlayerInfo[suspect][pCash] = PlayerInfo[suspect][pCash]-moneys;
                                                GivePlayerMoney(suspect, -moneys);
                                                ClearGuns(suspect);
                                                ResetPlayerWeapons(suspect);
                                                if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
                                                {
                                                        format(string, sizeof(string), "[LSPD] |%s %s Has arrested The Suspect %s|", GetPlayerRank(playerid),GetName(playerid), giveplayer);
                                                        OOCNews(COLOR_LIGHTRED, string);
                                                      SetPlayerInterior(suspect,10); PlayerInfo[playerid][pInt] = 6;
                                                        new rand = random(sizeof(SFSpawns));
                                                        PlayerCell = rand;
                                                        SetPlayerPos(suspect, SFSpawns[rand][0], SFSpawns[rand][1], SFSpawns[rand][2]);
                                        SetPlayerFacingAngle(suspect, SFSpawns[rand][3]);
                                                        PlayerCuffed[suspect] = 0;
                                                        TogglePlayerControllable(suspect, 1);
                                                        SetCameraBehindPlayer(suspect);
                                                        PlayerInfo[suspect][pJailTime] = time*60;
                                                }
                                                else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
                                                {
                                                    format(string, sizeof(string), "[FBI] |%s %s Has arrested The Suspect %s|", GetPlayerRank(playerid),GetName(playerid), giveplayer);
                                                        OOCNews(COLOR_LIGHTRED, string);
                                                        SetPlayerInterior(suspect,10); PlayerInfo[playerid][pInt] = 6;
                                                        new rand = random(sizeof(FBISpawns));
                                                        PlayerCell = rand;
                                                        SetPlayerPos(suspect, FBISpawns[rand][0], FBISpawns[rand][1], FBISpawns[rand][2]);
                                        SetPlayerFacingAngle(suspect, FBISpawns[rand][3]);
                                                        PlayerCuffed[suspect] = 0;
                                                        TogglePlayerControllable(suspect, 1);
                                                        SetCameraBehindPlayer(suspect);
                                                        PlayerInfo[suspect][pJailTime] = time * 60;
                                                }
                                                else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
                                                {
                                                    format(string, sizeof(string), "[DSD] |%s %s Has arrested The Suspect %s|", GetPlayerRank(playerid),GetName(playerid), giveplayer);
                                                        OOCNews(COLOR_LIGHTRED, string);
                                                        SetPlayerInterior(suspect,10); PlayerInfo[playerid][pInt] = 6;
                                                        new rand = random(sizeof(SFSpawns));
                                                        PlayerCell = rand;
                                                        SetPlayerPos(suspect, SFSpawns[rand][0], SFSpawns[rand][1], SFSpawns[rand][2]);
                                        SetPlayerFacingAngle(suspect, SFSpawns[rand][3]);
                                                        PlayerCuffed[suspect] = 0;
                                                        TogglePlayerControllable(suspect, 1);
                                                        SetCameraBehindPlayer(suspect);
                                                        PlayerInfo[suspect][pJailTime] = time * 60;
                                                }
                                                else if(PlayerInfo[playerid][pMember]==7||PlayerInfo[playerid][pLeader]==7)
                                                {
                                                    format(string, sizeof(string), "[SS] |%s %s Has arrested The Suspect %s|", GetPlayerRank(playerid),GetName(playerid), giveplayer);
                                                        OOCNews(COLOR_LIGHTRED, string);
                                                        SetPlayerInterior(suspect,10); PlayerInfo[playerid][pInt] = 6;
                                                        new rand = random(sizeof(SFSpawns));
                                                        PlayerCell = rand;
                                                        SetPlayerPos(suspect, SFSpawns[rand][0], SFSpawns[rand][1], SFSpawns[rand][2]);
                                        SetPlayerFacingAngle(suspect, SFSpawns[rand][3]);
                                                        PlayerCuffed[suspect] = 0;
                                                        TogglePlayerControllable(suspect, 1);
                                                        SetCameraBehindPlayer(suspect);
                                                        PlayerInfo[suspect][pJailTime] = time * 60;
                                                }
                                                if(bail == 1)
                                                {
                                                        JailPrice[suspect] = bailprice;
                                                        format(string, sizeof(string), "* You are jailed for %d seconds, Bail: $%d.", PlayerInfo[suspect][pJailTime], JailPrice[suspect]);
                                                        SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                                                }
                                                else
                                                {
                                                    JailPrice[suspect] = 0;
                                                        format(string, sizeof(string), "* You are jailed for %d seconds, Bail: Unavailable.", PlayerInfo[suspect][pJailTime]);
                                                        SendClientMessage(suspect, COLOR_LIGHTBLUE, string);
                                                }
                                                if(PlayerInfo[suspect][Robbing] == 1)
                                                {
                                                    if(RobStatus[RobberID1] == suspect)
                                                        {
                                                            RobStatus[RobberID1] = 200;
                                                            if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
                                                                {
                                                                    RobStatus[BeingRobbed] = 0;
                                                                    RobStatus[BankReload] = 2; // Can't be robbed for 2 hours
                                                                    RobStatus[Setup] = 0;
                                                                    SendClientMessageToAll(COLOR_ORANGE, "** The Bank Robbery has finished **");
                                                                    FinishRobbery();
                                                                }
                                                        }
                                                        if(RobStatus[RobberID2] == suspect)
                                                        {
                                                            RobStatus[RobberID2] = 200;
                                                            if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
                                                                {
                                                                        RobStatus[BeingRobbed] = 0;
                                                                    RobStatus[BankReload] = 2; // Can't be robbed for 2 hours
                                                                    RobStatus[Setup] = 0;
                                                                    SendClientMessageToAll(COLOR_ORANGE, "** The Bank Robbery has finished **");
                                                                    FinishRobbery();
                                                                }
                                                        }
                                                        if(RobStatus[RobberID3] == suspect)
                                                        {
                                                            RobStatus[RobberID3] = 200;
                                                            if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
                                                                {
                                                                    RobStatus[BeingRobbed] = 0;
                                                                    RobStatus[BankReload] = 2; // Can't be robbed for 2 hours
                                                                    RobStatus[Setup] = 0;
                                                                    SendClientMessageToAll(COLOR_ORANGE, "** The Bank Robbery has finished **");
                                                                    FinishRobbery();
                                                                }
                                                        }
                                                        if(RobStatus[RobberID4] == suspect)
                                                        {
                                                            RobStatus[RobberID4] = 200;
                                                            if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
                                                                {
                                                                    RobStatus[BeingRobbed] = 0;
                                                                    RobStatus[BankReload] = 2; // Can't be robbed for 2 hours
                                                                    RobStatus[Setup] = 0;
                                                                    SendClientMessageToAll(COLOR_ORANGE, "** The Bank Robbery has finished **");
                                                                    FinishRobbery();
                                                                }
                                                        }
                                                        if(RobStatus[RobberID5] == suspect)
                                                        {
                                                            RobStatus[RobberID5] = 200;
                                                            if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
                                                                {
                                                                    RobStatus[BeingRobbed] = 0;
                                                                    RobStatus[BankReload] = 2; // Can't be robbed for 2 hours
                                                                    RobStatus[Setup] = 0;
                                                                    SendClientMessageToAll(COLOR_ORANGE, "** The Bank Robbery has finished **");
                                                                    FinishRobbery();
                                                                }
                                                        }
                                                        format(string,sizeof(string),"** You've been arrested and didn't get your $%d",PlayerInfo[playerid][CashLoaded]);
                                                        SendClientMessage(suspect, COLOR_YELLOW, string);
                                                        PlayerInfo[suspect][CashLoaded] = 0;
                                                        PlayerInfo[suspect][Robbing] = 0;
                                                        DisablePlayerCheckpoint(suspect);
                                                }
                                                PlayerInfo[suspect][pJailed] = 1;
                                        PlayerInfo[suspect][pArrested] += 1;
                                                SetPlayerFree(suspect,playerid, "Got Arrested");
                                                PlayerInfo[suspect][pWantedLevel] = 0;
                                                SetPlayerWantedLevel(suspect, 0);
                                                SetPlayerToTeamColor(suspect);
                                                WantLawyer[suspect] = 1;
                                                OnPlayerSave(suspect);
                                        }
                                }
                                else
                                {
                                    SendClientMessage(playerid, COLOR_GREY, "  Nobody close enough to arrest!");
                                    return 1;
                                }
                        }
                        else
                        {
                            SendClientMessage(playerid, COLOR_GREY, "  You are not part of a Team!");
                            return 1;
                        }
                }
                return 1;
        }

PS: Creditos aos criadores do gamemode Classified Roleplay, porque estou usando como base.

request connection cookie

Hello,

I can't connect to my localhost server because of .. ? Thats the question and problem. I downloaded latest pure files like server and client sa-mp, also reinstalled gta but it's still showing "request connection cookie" in console. I tried to run it on public by forwarding port and it's not changing anything. Any advice?

P.S I can join to any other 0.3.7 R3 server.

Code:

[14:24:20] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1028 requests connection cookie.
[14:24:21] [connection] iphere:1029 requests connection cookie.
[14:24:21] [connection] iphere:1029 requests connection cookie.
[14:24:21] [connection] iphere:1029 requests connection cookie.


Problem rank

How to replace it with the newer BlueG MySQL ?
Code:

stock LoadRank()
{
    new query[512], id, type, ranks[256], rank[MAX_RANK][MAX_RANK_LEN];
    mysql_query("SELECT * FROM `rankname`");
    mysql_store_result();

    while(mysql_fetch_row_format(query, "|"))
    {
        sscanf(query, "p<|>dds[256]", id, type, ranks);
        sscanf(ranks, "p<,>A<s[25]>()[10]", rank);

        if(type == 1)
        {
            for(new i = 0; i < MAX_RANK; i++)
            {
                if(strlen(rank[i]) > 1) format(FracRank[id][i], 25, "%s", rank[i]);
            }
        }
    }
    mysql_free_result();
    print("Ranks were read");
}

A desperate plea, from a passionate server developer

Hi


Let me preface this by saying that I'm not the nicest person around but I am very passionate about server development and being able to put my creativity onto a canvas. SA-MP is my canvas. I want to keep it that way for a while even though interest from the development team has waned, hence this thread...


As some of you may know I'm someone who creates very niche servers. Many of my concepts depend heavily on serverside content without using much of the GTA San Andreas base game. While this is all fine and dandy, SA-MP limits me in many ways because the functions that would make mine and other peoples content much better simply isn't there. I'm someone who heavily believes the "this is impossible in SA-MP" argument is bullshit and I've proven this many times around however there are some things that ARE impossible, at least to a degree. To explain...:


I'm forced to use textdraws to cover the GTA San Andreas hud, even though the implementation of a native function for this doesn't seem impossible (look at UG-MP). I'm forced to create an entire framework to handle animated objects (using model frames, timers, .. a buggy mess basically), while the SA-MP dev team has created many animated objects themselves but don't give us the proper means to do it ourselves. We can add custom skins and custom models but we can't add custom guns because we can't "hide" the singleplayer weapons. We can't add custom vehicles, custom animations, etc even though many other mods (russian clients, and UG-MP) have managed to do so without much trouble.


Let me tell you something, I had originally quit SA-MP but I came back due to 0.3DL and I would like to think that I have a pretty good idea on how to utilise this version, for example take a look at my medieval project or my wild west project. The feedback given from the playerbase on both of these servers are off the charts, a lot of people say they came back to SA-MP just to play it. I strongly believe if scripters aren't forced to find alternative or roundabout ways to achieve their concepts it would benefit SA-MP loads.



The cancellation of 0.3DL was a big punch in the face and the reaction from most of the community, while irrational, backs this statement up. Personally? I don't want to be forced to move to a mod like UG-MP but I don't have any other choice. SA-MP has become a limit to what I want to do, see all issues listed above. I could go on about features etc like how attachment slots aren't enough for many servers (unless we use a plugin) or how only specific keys force us to find weird combinations and much more but I still have hope that there will be a change.


I really hope that there's more to the 0.3DL version because me and many other people who DO use it benefit greatly from having actual proper freedom, not being limited to the old shitty GTA SA HUD, the same vehicles and weapons, etc. Just imagine how immersive TDM servers would be able to get, or roleplay servers with new vehicles (UG-MP has many examples on this, just check their mod section, the content pumped out there is amazing).


What does it take for the dev team to introduce features like the ones mentioned above? 0.3DL was a very good start and while it's cancellation was unfortunate I really hope this doesn't end the idea of the DL version. There can be much more to this mod and it's servers if the right stones are set in place.

[GameMode] ● Roleplay Based Horizon Roleplay [Still Dev]

⭐ Information


╔[ The Gamemods Like Horizon Roleplay so i'm not good scripter of the script .
╠[ If see any bug or error don't pm me on messages.
╚[ I post the Theard becuase everyone tell me please give me ... so it's here gamemods.


‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

» Download GameMods : Press here !! .


‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾

● » | Leave +REP

Texdraw.

The problem is. The textdraw shows a time of 2 minutes like this.

01-199

But it should go like this 02-00..... 01-59..58 etc. What I'm doing wrong.

This is the format.

Code:

format(str,sizeof str,"%02d-%02d",(ZoneInfo[zoneid][Timer]/60),ZoneInfo[zoneid][Timer]);
If the code is not enough, tell.

..:: ● LAS VENTURAS GANG WARS ● Come & hone your TEAM DEATHMATCH skills! ::.. .

..:: Introduction ::..

Las Venturas Gang Wars, founded in May 2018, is a unique Deathmatch Server, allowing players to fight together as part of a team, or alone.

Built from the ground up, it features five teams, each of which have their own custom-mapped base, and vehicles.

Our number one priority has always been to maintain a fair experience, between all players - it's for this reason that all players have access to the same commands and features!

We're on the SA:MP Hosted Tab, and utilize a 100% SSD powered Core i7 Dedicated Server with DDoS protection to help deliver the best possible uptime & performance.

..:: Forum ::..

https://lv-gw.com/

..:: Server IP ::..

149.202.89.34:7776

..:: Screenshots ::..

Image may be NSFW.
Clik here to view.


Image may be NSFW.
Clik here to view.


Image may be NSFW.
Clik here to view.


Image may be NSFW.
Clik here to view.


Image may be NSFW.
Clik here to view.

[Ajuda] Coloca mensagem se não estiver perto da Casa

Boa tarde, estou com um pequeno problema... eu já tentei de todas as formas, mas não vai de jeito nenhum.

Eu queria que quando o player digitasse um comando... slá /teste ai ele não tivesse perto de uma casa, ia aparece uma mensagem falando que ele não está perto de uma casa. Eu já tentei assim:


PHP Code:

if(!IsPlayerInRangeOfPoint(playerid1.0houseData[i][houseX], houseData[i][houseY], houseData[i][houseZ])) 

Mas não funciona, aparece que o comando não existe, eu já tentei colocar dentro desse GetProxHouse e não vai, aparece que não estou perto de uma casa mesmo eu estando perto dela, mas funciona de boas com a cada de ID 1

PHP Code:

GetProxHouse(playerid)
{
    for(new 
1MAX_HOUSESi++)
    {
        if(
IsPlayerInRangeOfPoint(playerid1.0houseData[i][houseX], houseData[i][houseY], houseData[i][houseZ]))
        {
            return 
i;
        }
        else if(
IsPlayerInRangeOfPoint(playerid1.0houseData[i][houseIntX], houseData[i][houseIntY], houseData[i][houseIntZ]))
        {
            return 
i;
        }
    }
    return -
255;
}

CMD:teste(playerid)
{
    new 
house GetProxHouse(playerid);
    if(
IsPlayerInRangeOfPoint(playerid1.0houseData[house][houseX], houseData[house][houseY], houseData[house][houseZ]))
    {

    }
    else 
SendClientMessage(playerid, -1"Nao esta perto de uma casa");
    return 
1;


ID de item

Alguém poderia me mandar o id da mochila da skin de id 16? agradeço desde já...

Ask help

hello I have a problem update a version 0.3 7 and the texts draw that do not work do not appear now update the pawno and the includes of that veesion

VisualTexture l Pawn - SA:MP

This Software is being developed, in order to help people who under some circumstances do not have Internet connection at any time, therefore, with this Software, they will have the opportunity to consult Information, which can be consulted in the Forums of Pawn.

Currently I am still developing this program, so I hope to launch the first BETA, before the end of April.

pd: In case the video is displayed in bad quality, it's a forum thing, not mine e.e

Attached Files
Image may be NSFW.
Clik here to view.
File Type: mp4
VisualTexture l Pawn - SAMP.mp4 (13.93 MB)

MTA and SAMP are merging?

Greetings community, I'm a player who has been playing gta online for a long period. I played SAMP for almost 9 years and MTA for 13 years.
This morning I was checking mta sa news feed and I've noticed that one of mta moderators made an announcement saying that MTASA has been bought and that MTASA is becoming SAMP !

I am not here to confirm that this is 100% happening. I'm here to ask if this is true or not. in my opinion, merging both mods is a great idea.


Share your opinions community.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.

GetDynamicObjectPos & OnPlayerShootDynamicObject reading wrong coordinates

Hi everyone,

I have problem with GetDynamicObjectPos and OnPlayerShootDynamicObject which are not getting coordinates right. I spent few hours trying to find solution but without any luck so I was hopping you guys can help me. You can see at the picture below that script is clearly getting coordinates and distance between player and object wrong.

This is object I created.
pawn Code:
CreateDynamicObject(19315, 1227.5359, -4454.4858, 23.4837,   0.00000, 0.00000, 0.00000, -1, -1, -1, 300.00, 300.00);

This is a code from script.
pawn Code:
public OnPlayerShootDynamicObject(playerid, weaponid, objectid, Float:x, Float:y, Float:z)
{
    new
        Float: fDistance = GetPlayerDistanceFromPoint(playerid, x, y, z),
        sString[256],
        sString2[256];
       
    format(sString, sizeof(sString), "Weapon %i. Object: %i. Pos of Object: %f, %f, %f", weaponid, objectid, x, y, z);
    format(sString2, sizeof(sString2), "Distance between you and Object is %0.2f.", fDistance);
    SendClientMessage(playerid, -1, sString);
    SendClientMessage(playerid, 0xA9C4E4FF, sString2);
    return 1;
}

Any help would be appreciated.

Attached Images
Image may be NSFW.
Clik here to view.
File Type: jpg
img2.jpg (397.6 KB)

array index out of bounds

I have wrote a little code, and I'm getting the array index out of bound error, the error is because of the last line.

Link: https://pastebin.com/FfK57zcS

I have tried many things but error still appears. Please help!
Viewing all 18226 articles
Browse latest View live


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