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

[REP++] Respawn cars cmd

$
0
0
Here is the COMMAND:
HTML Code:

YCMD:rac(playerid, params[], help)
{
        #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""ZELENA"[SE] "BELA"Moras se ulogovati da bi koristio ovu komandu!");
        if(PlayerInfo[playerid][xAdmin] < 6) return SCM(playerid, -1, ""ZELENA"[SE:RPG] "BELA"Samo Vlasnik.");
    if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""ZELENA"[SE:RPG] "BELA"Morate biti na admin duznosti!");
        if(RespawnVozila == 1) return SCM(playerid, -1, ""CRVENA"[GRESKA] "BELA"Respawn je vec pokrenut!");
        new string2[32];
        if(sscanf(params, "s[32]", string2)) return SCM(playerid,-1,""ZELENA"[koriscenje] | "BELA"/rac ["ZELENA"privatna "BELA"| "ZELENA"sva"BELA""BELA"]");
        if(!strcmp(string2, "privatna"))
        {
                if(RespawnVozila == 1) return SCM(playerid, -1, ""CRVENA"[GRESKA] "BELA"Respawn je vec pokrenut!");
                new string[512]; RespawnVozila = 1;
                format(string,sizeof string, ""CRVENA"[!] "BELA"%s %s je pokrenuo respawn "CRVENA"privatnih "BELA"vozila za 20s!", GetName(playerid));
                SendClientMessageToAll(-1, string);
                SendClientMessageToAll(-1, ""CRVENA"[!] "BELA"Udjite u svoje vozilo da se ne respawna!");
                SetTimer("pRespawn", 20000, false);
                RespawnVozila = 1;
        }
        else if(!strcmp(string2, "sva"))
        {
                if(RespawnVozila == 1) return SCM(playerid, -1, ""CRVENA"[GRESKA] "BELA"Respawn je vec pokrenut!");
                new string[512]; RespawnVozila = 1;
                format(string,sizeof string, ""CRVENA"[!] "BELA"%s %s je pokrenuo respawn "CRVENA"svih "BELA"vozila za 20s!", GetName(playerid));
                SendClientMessageToAll(-1, string);
                SendClientMessageToAll(-1, ""CRVENA"[!] "BELA"Udjite u svoje vozilo da se ne respawna!");
                SetTimer("Respawn", 20000, false);
        }
        return 1;
}

Here is the public for "sva" strcmp
HTML Code:

forward Respawn();
public Respawn()
{
        new bool:unwanted[MAX_VOZILA];
        for(new player=0; player<MAX_PLAYERS; player++)
        {
                if(IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
        }
        for(new car = 1; car < MAX_VOZILA; car++)
        {
                if(!unwanted[car]) SetVehicleToRespawn(car);
        }
        RespawnVozila = 0; SendClientMessageToAll(-1, ""CRVENA"[!] "BELA"Vozila respawnovana!");
        return 1;
}

So when i do /rac privatna, all works, but when i type /rac sva, scrip freeze and falls down..

[Ajuda] Radar

$
0
0
Galera estou com problemas no meu radar ele cria tudo certinho mais quando passo por ele #nadaacontece

uso o gm base do ppc

aqui esta a public .

// This function checks if the player is speeding near a speedcamera
CheckPlayerSpeeding(playerid)
{
// Setup local variables
new Name[24], Msg[128];
new Msg2[128];
if (APlayerData[playerid][PlayerCaughtSpeeding] == 0)
{
for (new CamID; CamID < MAX_CAMERAS; CamID++)
{
if (ACameras[CamID][CamSpeed] != 0)
{
/*if (IsPlayerInRangeOfPoint(playerid, 100.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
TextDrawShowForPlayer(playerid, RadarRadar[playerid]);
SetTimer("DestruirTextRadar", 3000, false);
}*/
if (GetPlayerVehicleSeat(playerid) == 0)
{
if (APlayerData[playerid][PlayerSpeed] > ACameras[CamID][CamSpeed])
{
if (IsPlayerInRangeOfPoint(playerid, 30.0, ACameras[CamID][CamX], ACameras[CamID][CamY], ACameras[CamID][CamZ]))
{
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
APlayerData[playerid][PlayerCaughtSpeeding] = 20;
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid) + 1);
SendClientMessage(playerid, 0xFFFFFFFF, TXT_PlayerCaughtSpeeding);
GetPlayerName(playerid, Name, sizeof(Name));
format(Msg, 128, "{FFFF00}[INFO] {009D4F}Player %s está dirigindo em alta velocidade, pare-o e multe-o", Name);
Police_SendMessage(Msg);
format(Msg2, sizeof(Msg2), "{009D4F}Visto pela última vez nas redondezas de: {AFAFAF}%s", zone);
Police_SendMessage(Msg2);
}
}
}
}
}
}
else // If the player has been caught before, reduce the value until it's 0 again, then he can be caught again
APlayerData[playerid][PlayerCaughtSpeeding]--;
}

LINK COMPLETO DO VELOCIMENTRO : https://pastebin.com/d4puwLWd

Height TestDraw

$
0
0
To stretch the TextDraw to half the screen, you need to specify 224, not 240. Why?
I'm sorry for my English.

Ban System need Help.

$
0
0
Hello Everyone.

I'm facing issue my ban system working like other servers but anyway to kick the VPN users.
Like a kid was got banned and he changed ip and created almost 100+ accounts anyway to
kick him directly rather than banning him because he came ban after ban again to spam and
insulting players and to damage server.

Thanks

Little help?

$
0
0
Hello!
How can I prevent this from showing up to my code?
I already know it's because the gamemode is too big, but tell me how to make it not be that big!
Code:

Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase

Header size:          5684 bytes
Code size:          503264 bytes
Data size:          1266060 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4741 cells (18964 bytes)
Total requirements: 1791392 bytes

Mysql Related Error

$
0
0
Code:

[18:36:29]    Error: Function not registered: 'cache_get_data'
[18:36:29]    Error: Function not registered: 'cache_get_field_content'
[18:36:29]    Error: Function not registered: 'cache_get_row'
[18:36:29] Script[gamemodes/BGRP.amx]: Run time error 19: "File or function is not found"

Aside from runtime error 19, please tell me what or how to fix this error above runtime error.

Full logs
Code:

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[18:36:29]
[18:36:29] Server Plugins
[18:36:29] --------------
[18:36:29]  Loading plugin: mysql.so
[18:36:29]  >> plugin.mysql: R41-4 successfully loaded.
[18:36:29]  Loaded.
[18:36:29]  Loading plugin: whirlpool.so
[18:36:29] 
[18:36:29]  ==================
[18:36:29] 
[18:36:29]  Whirlpool loaded
[18:36:29] 
[18:36:29]  ==================
[18:36:29] 
[18:36:29]  Loaded.
[18:36:29]  Loading plugin: streamer.so
[18:36:29]

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[18:36:29]  Loaded.
[18:36:29]  Loading plugin: sscanf.so
[18:36:29]

[18:36:29]  ===============================

[18:36:29]      sscanf plugin loaded.   

[18:36:29]          Version:  2.8.1       

[18:36:29]    (c) 2012 Alex "Y_Less" Cole 

[18:36:29]  ===============================

[18:36:29]  Loaded.
[18:36:29]  Loading plugin: nativechecker.so
[18:36:29]  Loaded.
[18:36:29]  Loaded 5 plugins.

[18:36:29]
[18:36:29] Filterscripts
[18:36:29] ---------------
[18:36:29]  Loading filterscript 'Maping.amx'...
[18:36:29]  Loading filterscript 'PlayerInteriors.amx'...
[18:36:29]  Loading filterscript 'PlayerExteriors.amx'...
[18:36:29]  Loading filterscript 'yom_buttons.amx'...
[18:36:29]  Loading filterscript 'vactions.amx'...
[18:36:29]  Loading filterscript 'Server.amx'...
[18:36:29]  Loaded 6 filterscripts.

[18:36:29]    Error: Function not registered: 'cache_get_data'
[18:36:29]    Error: Function not registered: 'cache_get_field_content'
[18:36:29]    Error: Function not registered: 'cache_get_row'
[18:36:29] Script[gamemodes/BGRP.amx]: Run time error 19: "File or function is not found"
[18:36:29] Number of vehicle models: 0

sscanf,mapandreas,crashdetect,streamer fail loaded please help me

$
0
0
sscanf, mapandreas, crashdetect, streamer do not read on the latest version of sscanf and streaemr, but again install microsoft c ++ 2015 and again help?
server.log

----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C) 2005-2015 SA-MP Team

[18:43:09] filterscripts = "" (string)
[18:43:06]
[18:43:07] Server Plugins
[18:43:08] --------------
[18:43:07] Loading plugin: sscanf
[18:43:02] Failed.
[18:43:07] Loading plugin: MapAndreas
[18:43:06] Loaded.
[18:43:07] Loading plugin: streamer
[18:43:02] Failed.
[18:43:08] Loading plugin: crashdetect
[18:43:02] Failed.
[18:43:09] Loaded 1 plugins.

[18:43:06]
[18:43:09] Filterscripts
[18:43:08] ---------------
[18:43:06] Loaded 0 filterscripts.

[18:43:07] Script [gamemodes / SMRP.amx]: Run time error 19: "File or function is not found"
[18:43:09] Number of models: 0
server.cfg
echo Executing Server Config ...
lanmode 0
rcon_password 123
maxplayers 200
port 7777
hostname San Marino Roleplay
gamemode0 SMRP 1
filterscripts
plugins sscanf MapAndreas streamer crashdetect
announce 0
query 1
chatlogging 0
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 800.0
stream_rate 1000
maxnpc 0
logtimeformat [% H:% M:% S]
logqueries 0
ackslimit 5000

how to solve this error

$
0
0
//just an example
new arr[MAX_PLAYERS][50][2];
arr[playerid]={{0,1},{0,2}};

//errors
error 008: must be a constant expression; assumed zero
error 048: array dimensions do not match

[DM] Martyz ft. ALpacino ft. NexT - Desert Tour

My tree has autism

$
0
0
Hello everyone I was trying to make an apple tree using the model preview textdraws but it sometimes look fine sometimes it's messed up almost like it has a mind of its own.
Here are a couple of pictures:

Good tree:


Bad tree:


This is how I create the trees:

Code:

AppleBGTD[playerid] = CreatePlayerTextDraw(playerid, 207.777770, 97.911125, "box");
        PlayerTextDrawLetterSize(playerid, AppleBGTD[playerid], 0.000000, 25.869667);
        PlayerTextDrawTextSize(playerid, AppleBGTD[playerid], 414.000000, 0.000000);
        PlayerTextDrawColor(playerid, AppleBGTD[playerid], -1);
        PlayerTextDrawUseBox(playerid, AppleBGTD[playerid], 1);
        PlayerTextDrawBoxColor(playerid, AppleBGTD[playerid], 170);
        PlayerTextDrawBackgroundColor(playerid, AppleBGTD[playerid], 85);
        PlayerTextDrawFont(playerid, AppleBGTD[playerid], 1);
        PlayerTextDrawSetProportional(playerid, AppleBGTD[playerid], 1);

        AppleTreeTD[playerid] = CreatePlayerTextDraw(playerid, 121.444496, 92.777809, "");
        PlayerTextDrawTextSize(playerid, AppleTreeTD[playerid], 366.000000, 228.000000);
        PlayerTextDrawColor(playerid, AppleTreeTD[playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeTD[playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeTD[playerid], 5);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeTD[playerid], 673);
        PlayerTextDrawSetPreviewRot(playerid, AppleTreeTD[playerid], 0.000000, 0.000000, 0.000000, 0.800000);

        AppleTreeApplesTD[0][playerid] = CreatePlayerTextDraw(playerid, 323.666809, 101.737792, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[0][playerid], 39.000000, 43.000000);
        PlayerTextDrawAlignment(playerid, AppleTreeApplesTD[0][playerid], 1);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[0][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[0][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[0][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[0][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[0][playerid], 19575);

        AppleTreeApplesTD[1][playerid] = CreatePlayerTextDraw(playerid, 293.444488, 94.768913, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[1][playerid], 39.000000, 43.000000);
        PlayerTextDrawAlignment(playerid, AppleTreeApplesTD[1][playerid], 1);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[1][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[1][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[1][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[1][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[1][playerid], 19575);

        AppleTreeApplesTD[2][playerid] = CreatePlayerTextDraw(playerid, 297.000061, 130.608901, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[2][playerid], 39.000000, 43.000000);
        PlayerTextDrawAlignment(playerid, AppleTreeApplesTD[2][playerid], 1);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[2][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[2][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[2][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[2][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[2][playerid], 19575);

        AppleTreeApplesTD[3][playerid] = CreatePlayerTextDraw(playerid, 264.555603, 114.680046, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[3][playerid], 39.000000, 43.000000);
        PlayerTextDrawAlignment(playerid, AppleTreeApplesTD[3][playerid], 1);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[3][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[3][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[3][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[3][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[3][playerid], 19575);

        AppleTreeApplesTD[4][playerid] = CreatePlayerTextDraw(playerid, 226.777832, 151.431060, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[4][playerid], 39.000000, 43.000000);
        PlayerTextDrawAlignment(playerid, AppleTreeApplesTD[4][playerid], 1);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[4][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[4][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[4][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[4][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[4][playerid], 19575);

        AppleTreeApplesTD[5][playerid] = CreatePlayerTextDraw(playerid, 256.111145, 148.942153, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[5][playerid], 39.000000, 43.000000);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[5][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[5][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[5][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[5][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[5][playerid], 19575);

        AppleTreeApplesTD[6][playerid] = CreatePlayerTextDraw(playerid, 334.777862, 147.946594, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[6][playerid], 39.000000, 43.000000);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[6][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[6][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[6][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[6][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[6][playerid], 19575);

        AppleTreeApplesTD[7][playerid] = CreatePlayerTextDraw(playerid, 300.111175, 169.351013, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[7][playerid], 39.000000, 43.000000);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[7][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[7][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[7][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[7][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[7][playerid], 19575);

        AppleTreeApplesTD[8][playerid] = CreatePlayerTextDraw(playerid, 265.888946, 177.315460, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[8][playerid], 39.000000, 43.000000);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[8][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[8][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[8][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[8][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[8][playerid], 19575);

        AppleTreeApplesTD[9][playerid] = CreatePlayerTextDraw(playerid, 337.888977, 174.328796, "");
        PlayerTextDrawTextSize(playerid, AppleTreeApplesTD[9][playerid], 39.000000, 43.000000);
        PlayerTextDrawColor(playerid, AppleTreeApplesTD[9][playerid], -1);
        PlayerTextDrawBackgroundColor(playerid, AppleTreeApplesTD[9][playerid], 0);
        PlayerTextDrawFont(playerid, AppleTreeApplesTD[9][playerid], 5);
        PlayerTextDrawSetSelectable(playerid, AppleTreeApplesTD[9][playerid], true);
        PlayerTextDrawSetPreviewModel(playerid, AppleTreeApplesTD[9][playerid], 19575);

This is how I show the tree:
Code:

CreateAppleTreePTD(playerid); // Calls the above code
// Show tree
PlayerTextDrawShow(playerid, AppleBGTD[playerid]);
PlayerTextDrawShow(playerid, AppleTreeTD[playerid]);
// Show apples
for (new i = 0; i < MAX_APPLES; i++)
{
        if (TreeVar[tree][AppleTreeApples][i])
                PlayerTextDrawShow(playerid, AppleTreeApplesTD[i][playerid]);
}
SelectTextDraw(playerid, 0xFFFFFFAA);

This is how I hide the tree:
Code:

PlayerTextDrawHide(playerid, AppleBGTD[playerid]);
PlayerTextDrawHide(playerid, AppleTreeTD[playerid]);
PlayerTextDrawDestroy(playerid, AppleBGTD[playerid]);
PlayerTextDrawDestroy(playerid, AppleTreeTD[playerid]);
for (new i = 0; i < MAX_APPLES; i++)
{
        PlayerTextDrawHide(playerid, AppleTreeApplesTD[i][playerid]);
        PlayerTextDrawDestroy(playerid, AppleTreeApplesTD[i][playerid]);
}

I basically create the textdraws on demand then destroy them when I'm done to kind of "stream" them. I tried doing it the usual way (Creating it once then just show them and hide them without destroying them) and I had the same issue.

[Pedido] Varias loadscreens ao conectar

$
0
0
Alguem ae me explica ou posta o script de varias imagens ao conectar, eu coloquei a ImagemEntrada que eu vi em um tutorial, mas precisaria colocar mais.
Alguem?

SAMP - GIB BUG

$
0
0
All SAMP - BUG.

038 - WAIT 2 YEAR. 2 FUCKING YEAR. And what? Add downloal model? Nice work. Internet = hosted. Nice work.

All dev wait new function, NATIVE function for NPC (thx ziggi for FCNPC), function for water, function for checkpoint (change color (ADDRESS FOR CHANGE YOU CAN FIND IN MTA SOURCE), create lot, etc), function for GUI (ADD TO SAMP CEF HOW IN GT-MP), wait client side (for create speedometer without timer and cycle), function for physics vehicle (weight etc). AND YOU ADD DOWNLOAD MODEL? Seriously? Gj.

Add at least NORMAL function for audio and callback.

How to make the menu in center?

$
0
0
How to make the menu in center? Any help ?

Recompiling Error

$
0
0
I've been recompiling my script .pwn wrong the whole time.
I open the .pwn directly without opening the pawno.exe first and when I recompile, it says success.

So when I tried opening pawno.exe first then open the .pwn file script then recompile, the error shows up.

Code:

./includes/timers.pwn(153) : error 017: undefined symbol "mysql_function_query"
./includes/timers.pwn(164) : error 017: undefined symbol "mysql_function_query"
./includes/timers.pwn(2239) : error 017: undefined symbol "mysql_function_query"
./includes/timers.pwn(2243) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(3825) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(3829) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(3857) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(4062) : error 017: undefined symbol "cache_get_data"
./includes/functions.pwn(4063) : error 017: undefined symbol "cache_get_field_content"
./includes/functions.pwn(4058) : warning 203: symbol is never used: "iRows"
./includes/functions.pwn(4057) : warning 203: symbol is never used: "iFields"
./includes/functions.pwn(7376) : error 017: undefined symbol "cache_get_data"
./includes/functions.pwn(7375) : warning 203: symbol is never used: "fields"
./includes/functions.pwn(12000) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(12025) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(12221) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(12246) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(13674) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(16717) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(16833) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(17968) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(18959) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(19254) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(19271) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(21012) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(21008) : warning 203: symbol is never used: "playerid"
./includes/functions.pwn(21190) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(21771) : error 017: undefined symbol "mysql_function_query"
./includes/functions.pwn(21767) : warning 203: symbol is never used: "playerid"
./includes/functions.pwn(21778) : error 017: undefined symbol "cache_get_data"
./includes/functions.pwn(21777) : warning 203: symbol is never used: "fields"
./includes/functions.pwn(25065) : error 017: undefined symbol "mysql_function_query"

Compilation aborted.Pawn compiler 3.2.3664                          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

SetPedMaterial(playerid, materialindex, etc, etc); ?

$
0
0
As the title suggests. I'm looking for something similar to SetObjectMaterial(a,b,c,d); but for use on player models.

Does it exist?

If not where can I request the next SA-MP release has this? If it's possible for them to do. Which at a guess I believe it should be able to work similar to objects? I'll donate if that's at all possible for this to be in the next release if it doesn't exist already.

Equivalent Roleplay | www.equivalentrp.com | Dynamic RP | NEW!!|

$
0
0
Equivalent Roleplay

Why us?
Equivalent Roleplay gives you the opportunity to roleplay among great roleplayers and a variety of nationalities in the same . Along with superior community of roleplayers and experienced Administrators and Management, we strive to have an up-to-date, unique game script which will allow players to have the best roleplay experience.
Equivalent Roleplay is a community that exists solely on the support of gamers. We operate a place for people to come together and socialize whilst also playing their favorite game. For a more detailed list of the game that we support you can check out our forums; equivalentrp.com.
  • Our community was founded in 2017 by a group of roleplay enthusiast. Our main goal was to provide roleplayers a great experience which they've never recieved before. We can assure you that here in Equivalent Roleplay, our well trained administration team will provide you the service you need, professionally handled; making sure that your roleplay experience will always be remembered.
    Through out the years, the knowledge of our scripters have excelled; allowing the roleplay script to be updated regularly with top notch scripting. We can assure you that there wouldn't be any downtimes from us due to script failure or what-so ever. Our current script is up to date and players can now roleplay with the latest system what SA-MP 0.3.7 can provide.

    Furthermore, we are looking for new legal faction leaders that will help us to stabilize the in terms of faction members. If you are experienced in any role, professional and aims for the best standards.

    Script Features?

    Dynamic Land System









    Dynamic Gang System








    Dynamic Furniture System.
    Dynamic Alliance System
    Dynamic Job System
    Gambling System
    Skate system
    Inventory System
    Entrance System
    Faction System
    Bandana System
    Turfs/Perks System
    Gang Locker system
    a lot more features, i can't explain them all here.

    Trailer
    https://www.youtube.com/watch?v=ciSiK8TIKHQ



    Website: www.equivalentrp.com | Shop: shop.equivalentrp.com | UCP: ucp.equivalentrp.com
    Teamspeak: ts.equivalentrp.com | Forums: www.equivalentrp.com/forums | Ip: samp.equivalentrp.com:7777

[Pedido] Textdraw

$
0
0
Quero um textdraw la em baixo no lado direito da tela Escrito CrimeLive
OBS:ja ensina como coloca prfv

[Texture studio] How to import retextured maps into server?

$
0
0
Hello my dudes,was wondering how do I import my retextured map in to a SAMP server,I did try and it doesn"t show the retexture,or even writings on the walls. Basicly the retexture doesn't work on my server.

What happend here?!

$
0
0
Hello, I've creating a something for Hightlist kills of map And creating the codes But There is a problem What is it?

I've creating the code and there are no errors/warrings but When someone killed other They are not update the Textdraw To Example: Thanks - 1 Like that But I really dont know Its not Updated them Anyone can help me?

PHP Code:

public OnPlayerSpawn(playerid)
{
      new 
firstsecondthirdfourthfifth;
    new 
Nick[50][MAX_PLAYER_NAME], string[MAX_PLAYER_NAME],string20[MAX_PLAYER_NAME];
    for(new 
i=0;i<MAX_PLAYERS;i++) // This loop will check for the player that has the most kills
    
{
        if(
kills[i] > kills[first])
        {
            
first i;
            
GetPlayerName(firstNick[0], MAX_PLAYER_NAME);
            
format(string20sizeof(string20), "~R~#1 - ~W~%s"Nick[0]);
            
TextDrawSetString(Textdraw12string20);
            
TextDrawShowForPlayer(playeridTextdraw12);
        }
    }
    for(new 
d=0;d<MAX_PLAYERS;d++) // This loop will check for the player that has the second most kills
    
{
        if(
first == d) continue;
        if(
kills[d] > kills[second])
        {
            
GetPlayerName(secondNick[0], MAX_PLAYER_NAME);
            
format(stringsizeof(string), "~R~#2 - ~W~%s"Nick[0]);
            
second d;
            
TextDrawSetString(Textdraw13string);
            
TextDrawShowForPlayer(playeridTextdraw13);
        }
    }
    for(new 
s=0;s<MAX_PLAYERS;s++) // This loop will check for the player that has the third most kills
    
{
        if(
first == || second == s) continue;
        if(
kills[s] > kills[third])
        {
            
GetPlayerName(thirdNick[0], MAX_PLAYER_NAME);
            
format(string[0], sizeof(string), "~R~#3 - ~W~%s"Nick[0]);
            
third s;
            
TextDrawSetString(Textdraw14string);
            
TextDrawShowForPlayer(playeridTextdraw14);
        }
    }
    for(new 
a=0;a<MAX_PLAYERS;a++) // This loop will check for the player that has the fourth most kills
    
{
        if(
first == || second == || third == a) continue;
        if(
kills[a] > kills[fourth])
        {
            
GetPlayerName(fourthNick[0], MAX_PLAYER_NAME);
            
format(stringsizeof(string), "~R~#4 - ~W~%s"Nick[0]);
            
fourth a;
            
TextDrawSetString(Textdraw15string);
            
TextDrawShowForPlayer(playeridTextdraw15);
        }
    }
    for(new 
c=0;c<MAX_PLAYERS;c++) // This loop will check for the player that has the fifth most kills
    
{
        if(
first == || second == || third == || fourth == c) continue;
        if(
kills[c] > kills[fifth])
        {
            
GetPlayerName(fifthNick[0], MAX_PLAYER_NAME);
            
format(stringsizeof(string), "~R~#5 - ~W~%s"Nick[0]);
            
fifth c;
            
TextDrawSetString(Textdraw15string);
            
TextDrawShowForPlayer(playeridTextdraw16);
        }
    }

    return 
1;


I've creating the Textdraws for them and There are no problem Just They not updated Kills when someone Killed

on player death - cant spawn after death

$
0
0
When I die, no matter how if it's a command (/kill) or getting die from falling down it always takes me to this screen:


Here is my OnPlayerDeath, OnPlayerSpawn and OnPlayerRequestClass codes:
OnPlayerRequestClass
Code:

public OnPlayerRequestClass(playerid, classid)
{
    TogglePlayerSpectating(playerid, 1);
          if(pInfo[playerid][Login]==1 && pInfo[playerid][RequestTeam]==0)
        {
            OnPlayerSpawn(playerid);
            return 1;
        }
        else if(pInfo[playerid][Login]==0 && pInfo[playerid][RequestTeam]==1)
        {
                ShowPlayerDialog(playerid, TEAM_DIALOG, DIALOG_STYLE_LIST, "Choose Team..",""cblue"United Stats America\n"cgreen"Europe\n"cyellow"Arabian\n"csoviet"Soviet\n"cgermany"Germany\n"caust"Australia ","Select","");
        }
        if(pInfo[playerid][RequestClass]==1)
        {
            ShowPlayerDialog(playerid, CLASS_DIALOG, DIALOG_STYLE_LIST,"Choose Class..","Assault - Rank 0\nSniper - Rank 0\nPilot - Rank 6\nEngineer - Rank 5\nJetTrooper - Rank 6\nSupport - Rank 5\nSpy - Rank 7\nDonor - For Donators only","Select","Back");
        }
        return 1;
}

OnPlayerSpawn
Code:

public OnPlayerSpawn(playerid)
{
        SetPlayerHealth(playerid, 99999);
    SendClientMessage(playerid, GREEN, "You have Anti-Spawn kill for 10 seconds.");
    spawnkilltimer[playerid] = SetTimerEx("AntiSK", 10000, false, "i", playerid);
    if(pInfo[playerid][Jailed] == 1)
    {
                ResetPlayerWeapons(playerid);
                SetPlayerInterior(playerid, 6);
                SetPlayerPos(playerid, 264.6707,77.4835,1001.0391);
                SetPlayerVirtualWorld(playerid, 97);
        }
    if(pInfo[playerid][Duty] == 1)
    {
            AllowAdminTeleport(1);
        }
        if(synccount==1)
        {
            SetPlayerPos(playerid, GetPVarFloat(playerid, "syncx"), GetPVarFloat(playerid, "syncy"), GetPVarFloat(playerid, "syncz"));
            SetPlayerHealth(playerid,GetPVarFloat(playerid, "synch"));
            SetPlayerArmour(playerid, GetPVarFloat(playerid, "synca"));
            SetPlayerSkin(playerid, skin[playerid]);
            GameTextForPlayer(playerid, "~r~Synced!", 2000, 3);
            for (new i = 0; i <= 12; i++)
                {
                    GivePlayerWeapon(playerid,weapons[i][0], weapons[i][1]);
                }
                KillTimer(spawnkilltimer[playerid]);
                synccount=0;
            return 1;
        }
          if(pInfo[playerid][Team] == USA)
        {
                SetPlayerTeam(playerid, USA);
                SetPlayerColor(playerid, BLUE);
                SetPlayerPos(playerid, 957.9977,2486.3159,10.9533);
                SetPlayerFacingAngle(playerid,179.2086);
                SetPlayerSkin(playerid, 287);
        }
        if(pInfo[playerid][Team] == Europe)
        {
                SetPlayerTeam(playerid, Europe);
                SetPlayerColor(playerid, GREEN);
                SetPlayerPos(playerid, -19.2288,1176.5468,19.5634);
                  SetPlayerSkin(playerid, 73);
        }
        if(pInfo[playerid][Team] == Arabian)
        {
                SetPlayerTeam(playerid, Arabian);
                SetPlayerColor(playerid, ORANGE);
                AllowAdminTeleport(0);
                SetPlayerSkin(playerid, 179);
        }
        if(pInfo[playerid][Team] == Soviet)
        {
                SetPlayerTeam(playerid, Soviet);
                SetPlayerColor(playerid, 0xDD0000FF);
                AllowAdminTeleport(0);
                SetPlayerSkin(playerid, 285);
        }
        if(pInfo[playerid][Team] == Germany)
        {
                SetPlayerTeam(playerid, Germany);
                SetPlayerColor(playerid, 0x6C00D9FF);
                AllowAdminTeleport(0);
                SetPlayerSkin(playerid, 124);
        }
        if(pInfo[playerid][Team] == Australia)
        {
                SetPlayerTeam(playerid, Australia);
                SetPlayerColor(playerid, 0x4A9595FF);
                SetPlayerPos(playerid, 0, 0, 0);
                AllowAdminTeleport(0);
                SetPlayerSkin(playerid, 124);
        }
        if(pInfo[playerid][Class] == ASSAULT)
        {
            SendClientMessage(playerid, -1,"You have chosen the Assault class");
                  SendClientMessage(playerid, -1,"BONUS: No extra bonus with this class");
                GivePlayerWeapon(playerid, 24, 200);
                GivePlayerWeapon(playerid, 27, 200);
                GivePlayerWeapon(playerid, 31, 400);
        }
        if(pInfo[playerid][Class] == SNIPER)
        {
            SendClientMessage(playerid, -1,"You have chosen the Sniper class");
                  SendClientMessage(playerid, -1,"BONUS: Invisible on map");
                GivePlayerWeapon(playerid, 4, 1);
                GivePlayerWeapon(playerid, 23, 100);
                GivePlayerWeapon(playerid, 29, 200);
                GivePlayerWeapon(playerid, 34, 150);
                if(pInfo[playerid][Team]==USA)
                {
                          SetPlayerColor(playerid, 0x4B6FFA00);
                }
                else if(pInfo[playerid][Team]==Europe)
                {
                          SetPlayerColor(playerid, 0x15FF0000);
                }
                else if(pInfo[playerid][Team]==Arabian)
                {
                          SetPlayerColor(playerid, 0xFF641A00);
                }
                else if(pInfo[playerid][Team]==Germany)
                {
                          SetPlayerColor(playerid, 0x6C00D966);
                }
                else if(pInfo[playerid][Team]==Soviet)
                {
                          SetPlayerColor(playerid, 0xDD000000);
                }
                else if(pInfo[playerid][Team]==Australia)
                {
                          SetPlayerColor(playerid, 0x4A959500);
                }
        }
    if(pInfo[playerid][Class] == PILOT)
        {
                SendClientMessage(playerid, -1,"You have chosen Pilot class");
                SendClientMessage(playerid, -1,"BONUS: Can fly heavy air vehicles");
                GivePlayerWeapon(playerid, 22, 200);
                GivePlayerWeapon(playerid, 25, 200);
                GivePlayerWeapon(playerid, 29, 200);
        }
        if(pInfo[playerid][Class] == ENGINEER)
        {
                SendClientMessage(playerid, -1,"You have chosen Engineer class");
                SendClientMessage(playerid, -1,"BONUS: Can drive rhino");
                GivePlayerWeapon(playerid, 24, 200);
                GivePlayerWeapon(playerid, 27, 200);
                GivePlayerWeapon(playerid, 30, 400);
        }
        if(pInfo[playerid][Class] == JET)
        {
                SendClientMessage(playerid, -1,"You have chosen JetTrooper class");
                SendClientMessage(playerid, -1,"BONUS: Can use /jetpack to spawn jetpack.");
                GivePlayerWeapon(playerid, 32, 400);
                GivePlayerWeapon(playerid, 24, 200);
                  GivePlayerWeapon(playerid, 29, 200);
        }
        if(pInfo[playerid][Class] == SP)
          {
                SendClientMessage(playerid, -1,"You have chosen Support class");
                SendClientMessage(playerid, -1,"BONUS: Use /Shelp For Supporter Commands.");
        }
        if(pInfo[playerid][Class] == AG)
          {
                SendClientMessage(playerid, -1,"You have chosen Spy class");
                SendClientMessage(playerid, -1,"BONUS: /Dis to disguise.");
                GivePlayerWeapon(playerid, 24, 200);
                GivePlayerWeapon(playerid, 27, 200);
                  GivePlayerWeapon(playerid, 31, 400);
                  GivePlayerWeapon(playerid, 26, 100);
        }
        if(pInfo[playerid][Class] == DONOR)
          {
                SendClientMessage(playerid, -1,"You have chosen Donor class");
                SendClientMessage(playerid, -1,"BONUS: Can Drive All Vehicles.");
                SendClientMessage(playerid, -1,"Use /DCmds For Donor Commands.");
        }
          if(pInfo[playerid][Duty] == 1)
        {
                KillTimer(spawnkilltimer[playerid]);
                SetPlayerColor(playerid, PINK);
                  SetPlayerHealth(playerid, 99999);
                  GivePlayerWeapon(playerid, 38, 9999);
                SetPlayerSkin(playerid, 217);
        }
    //----------------------------------Ranks-----------------------------------
    CheckPlayerRank(playerid);
          if(pInfo[playerid][Rank]== RANK_PRIVATE){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Private");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawHideForPlayer(playerid, Star1);
                TextDrawHideForPlayer(playerid, Star2);
                TextDrawHideForPlayer(playerid, Star3);
                TextDrawHideForPlayer(playerid, Star4);
                TextDrawHideForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_CORPORAL){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Corporal");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawHideForPlayer(playerid, Star2);
                TextDrawHideForPlayer(playerid, Star3);
                TextDrawHideForPlayer(playerid, Star4);
                TextDrawHideForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_SERGEANT){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Sergeant");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawHideForPlayer(playerid, Star3);
                TextDrawHideForPlayer(playerid, Star4);
                TextDrawHideForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);

          }
          else if(pInfo[playerid][Rank]== RANK_OFFICER){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Officer");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawHideForPlayer(playerid, Star4);
                TextDrawHideForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_LIEUTENANT){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Lieutenant");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawShowForPlayer(playerid, Star4);
                TextDrawHideForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_CAPTAIN){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Captain");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawShowForPlayer(playerid, Star4);
                TextDrawShowForPlayer(playerid, Star5);
                TextDrawHideForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_MAJOR){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Major");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawShowForPlayer(playerid, Star4);
                TextDrawShowForPlayer(playerid, Star5);
                TextDrawShowForPlayer(playerid, Star6);
                TextDrawHideForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_COLONEL){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "Colonel");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawShowForPlayer(playerid, Star4);
                TextDrawShowForPlayer(playerid, Star5);
                TextDrawShowForPlayer(playerid, Star6);
                TextDrawShowForPlayer(playerid, Star7);
                TextDrawHideForPlayer(playerid, Star8);
          }
          else if(pInfo[playerid][Rank]== RANK_GENERAL){
                Update3DTextLabelText(bubble[playerid], GetPlayerColor(playerid), "General");
                Attach3DTextLabelToPlayer(bubble[playerid], playerid, 0.0, 0.0, 0.3);
                TextDrawShowForPlayer(playerid, Star0);
                TextDrawShowForPlayer(playerid, Star1);
                TextDrawShowForPlayer(playerid, Star2);
                TextDrawShowForPlayer(playerid, Star3);
                TextDrawShowForPlayer(playerid, Star4);
                TextDrawShowForPlayer(playerid, Star5);
                TextDrawShowForPlayer(playerid, Star6);
                TextDrawShowForPlayer(playerid, Star7);
                TextDrawShowForPlayer(playerid, Star8);
          }
            //-------Stats info--------//
        format(str, SOS, "%i", pInfo[playerid][Kills]);
        PlayerTextDrawSetString(playerid, stats3[playerid], str);
          format(str, SOS, "%i", pInfo[playerid][Deaths]);
          PlayerTextDrawSetString(playerid, stats4[playerid], str);
          format(str, SOS, "%i", pInfo[playerid][Score]);
          PlayerTextDrawSetString(playerid, stats5[playerid], str);
          format(str, SOS, "%s", GetTeamName(playerid));
          PlayerTextDrawSetString(playerid, stats10[playerid], str);
          format(str, SOS, "%s", GetClassName(playerid));
          PlayerTextDrawSetString(playerid, stats11[playerid], str);
          format(str, SOS, "%s", GetRankName(playerid));
          PlayerTextDrawSetString(playerid, stats12[playerid], str);
          PlayerTextDrawShow(playerid, stats0[playerid]);
        PlayerTextDrawShow(playerid, stats1[playerid]);
        PlayerTextDrawShow(playerid, stats2[playerid]);
        PlayerTextDrawShow(playerid, stats3[playerid]);
        PlayerTextDrawShow(playerid, stats4[playerid]);
        PlayerTextDrawShow(playerid, stats5[playerid]);
        PlayerTextDrawShow(playerid, stats6[playerid]);
        PlayerTextDrawShow(playerid, stats7[playerid]);
        PlayerTextDrawShow(playerid, stats8[playerid]);
        PlayerTextDrawShow(playerid, stats9[playerid]);
        PlayerTextDrawShow(playerid, stats10[playerid]);
        PlayerTextDrawShow(playerid, stats11[playerid]);
        PlayerTextDrawShow(playerid, stats12[playerid]);
        return 1;
}
forward AntiSK(playerid);
public AntiSK(playerid)
{
    SetPlayerHealth(playerid, 100);
    SendClientMessage(playerid, RED, "Your Anti-Spawn kill ended.");
    HAtimer[playerid]=SetTimerEx("AntiHAtimer",100,0,"i",playerid);
    return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    IsDead[playerid] = true;
        //--------------Stats Info------------------//
        PlayerTextDrawHide (playerid, stats0[playerid]);
        PlayerTextDrawHide (playerid, stats1[playerid]);
        PlayerTextDrawHide (playerid, stats2[playerid]);
        PlayerTextDrawHide (playerid, stats3[playerid]);
        PlayerTextDrawHide (playerid, stats4[playerid]);
        PlayerTextDrawHide (playerid, stats5[playerid]);
        PlayerTextDrawHide (playerid, stats6[playerid]);
        PlayerTextDrawHide (playerid, stats7[playerid]);
        PlayerTextDrawHide (playerid, stats8[playerid]);
        PlayerTextDrawHide (playerid, stats9[playerid]);
        PlayerTextDrawHide (playerid, stats10[playerid]);
        PlayerTextDrawHide (playerid, stats11[playerid]);
        PlayerTextDrawHide (playerid, stats12[playerid]);
        //--------------------------------------------//
    for(new i = 0; i < MAX_ZONES; ++i)
        {
                if(IsPlayerCapturing[playerid]{ i })
                {
                        StopCaptureArea(playerid,i);
                }
                if(IsPlayerHelping[playerid]{ i })
                {
                        IsPlayerHelping[playerid]{ i } = false;
                }
        }
        DestroyPlayerProgressBar(playerid, PlayerBar:zonebar);
        SendDeathMessage(killerid, playerid, reason);
        KillTimer(HAtimer[playerid]);
//    GameTextForPlayer(playerid, "~r~Wasted", 5000, 2);
    pInfo[playerid][Joined]=0;
          pInfo[playerid][Deaths] += 1;
          pInfo[killerid][Score] +=2;
          pInfo[killerid][Kills] += 1;
          new rand = RandomEx(2500,5001);
        format(str,SOS,"You have killed %s and you earned 2 Score and %i$ !",pInfo[playerid][Name],rand);
        SendClientMessage(killerid,GREEN,str);
        AllowAdminTeleport(0);
          SaveStats(playerid);
    return 1;
}

OnPlayerDeath
Code:

public OnPlayerDeath(playerid, killerid, reason)
{
    IsDead[playerid] = true;
        //--------------Stats Info------------------//
        PlayerTextDrawHide (playerid, stats0[playerid]);
        PlayerTextDrawHide (playerid, stats1[playerid]);
        PlayerTextDrawHide (playerid, stats2[playerid]);
        PlayerTextDrawHide (playerid, stats3[playerid]);
        PlayerTextDrawHide (playerid, stats4[playerid]);
        PlayerTextDrawHide (playerid, stats5[playerid]);
        PlayerTextDrawHide (playerid, stats6[playerid]);
        PlayerTextDrawHide (playerid, stats7[playerid]);
        PlayerTextDrawHide (playerid, stats8[playerid]);
        PlayerTextDrawHide (playerid, stats9[playerid]);
        PlayerTextDrawHide (playerid, stats10[playerid]);
        PlayerTextDrawHide (playerid, stats11[playerid]);
        PlayerTextDrawHide (playerid, stats12[playerid]);
        //--------------------------------------------//
    for(new i = 0; i < MAX_ZONES; ++i)
        {
                if(IsPlayerCapturing[playerid]{ i })
                {
                        StopCaptureArea(playerid,i);
                }
                if(IsPlayerHelping[playerid]{ i })
                {
                        IsPlayerHelping[playerid]{ i } = false;
                }
        }
        DestroyPlayerProgressBar(playerid, PlayerBar:zonebar);
        SendDeathMessage(killerid, playerid, reason);
        KillTimer(HAtimer[playerid]);
//    GameTextForPlayer(playerid, "~r~Wasted", 5000, 2);
    pInfo[playerid][Joined]=0;
          pInfo[playerid][Deaths] += 1;
          pInfo[killerid][Score] +=2;
          pInfo[killerid][Kills] += 1;
          new rand = RandomEx(2500,5001);
        format(str,SOS,"You have killed %s and you earned 2 Score and %i$ !",pInfo[playerid][Name],rand);
        SendClientMessage(killerid,GREEN,str);
        AllowAdminTeleport(0);
          SaveStats(playerid);
    return 1;
}

Thanks for the help!
Viewing all 18226 articles
Browse latest View live


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