Quantcast
Viewing all 18226 articles
Browse latest View live

Problem with public!

Hello,im have a problem with gamemode:
Code:

public Reportul(playerid)
{
        ReportTime[playerid] = 0;
        format(reporttext[playerid], 30, "NULL");
        format(cheattext[playerid], 30, "NULL");
        reportcheater[playerid] = -1;
        reportreason[playerid] = 0;
        if(playerreported[playerid] != -1)
        {
                reportreason[playerreported[playerid]] = 0;
        }
        playerreported[playerid] = -1;
        KillTimer(timerreport[playerid]);
}

And errors:
Code:

C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 028: invalid subscript (not an array or too many subscripts): "ReportTime"
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : warning 215: expression has no effect
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 001: expected token: ";", but found "]"
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : error 029: invalid expression, assumed zero
C:\Program Files\Cops And Robbers Romania\gamemodes\test1.pwn(1029) : fatal error 107: too many error messages on one line

Please help me!
(Sorry for my bad english,im from Romania) :)

Report in gamemode

Hello!
I'm want to make a report system,but i'm not know why.
Help with a tutorial or a code?
Thanks!
[Sorry for my bad english,im from Romania]

Object problem

I have a problem with objects ... such as this los santos shelf and City Hall
City Hall shows me cool...

Image may be NSFW.
Clik here to view.


can there be a problem include or plugin ...?
I use the latest streamer....
Help me :o :(

Attached Images
Image may be NSFW.
Clik here to view.
File Type: jpg
sa-mp-008.jpg (150.3 KB)

Reyo's Dust_2

I was working on a dust 2 inspired map based on the previous 2013 dust 2 map from CS:GO. I truly wanted to create the atmospheric part of it as well as try to replicate the framework of the passages and everything. I ended up making it more fitting for the environment in SA-MP and it sort of became my version of the map. Note down that ct-spawn and b-site is unfinished and won't be shown. If you want me to finish the map, leave a reply to let me know!

Started: 3 months ago
Time taken: 5-10 hours

VIEW FULL ALBUM: https://imgur.com/a/d8A1W

Image may be NSFW.
Clik here to view.

Health system

Hello guys, how to make, or what use for If I have 15hp, I'm on ground with an animation ?

X_1 shot X_2, X_2 have 15hp and he "dead" with anim

Thanks !

[FilterScript] Filterscript Vehicle System

Notice : I really need the vehicle owner's script

Include : Y_ini, Streamer2, Forech and ZCMD

Link?

[Off] Nota de falecimento - s4kuL

Ontem por volta das 23h, o jovem Lucas da Silva Henrique (s4kuL) foi assassinado em sua propia residência em Conselheiro Lafaiete.
s4kuL sempre foi um membro ativo no fórum trazendo projetos, filterscripts e até mesmo gamemodes para ampliar o conhecimento de todos aqui na board.

Alguns de seus projetos/filterscripts/gamemode:
http://forum.sa-mp.com/showthread.php?t=580278
http://forum.sa-mp.com/showthread.php?t=567529
http://forum.sa-mp.com/showthread.php?t=607773
http://forum.sa-mp.com/showthread.php?t=588663
http://forum.sa-mp.com/showthread.php?t=581675
http://forum.sa-mp.com/showthread.php?t=580279

Seu perfil no fórum samp:
http://forum.sa-mp.com/member.php?u=163253

Link da notícia:
http://fatoreal.com.br/site/jovem-de...irro-sao-joao/

Até mais, amigo.

[Query] OnPlayerStateChange doubt

I made a similar code a long time ago but I lost it, I'm trying to repeat it but it does not work out

When you get into the 425 vehicle, if you are a pilot, you must take it out of the vehicle, but nothing happens with this function that I did, thanks in advance for the help

Code:

if(GetVehicleModel(vehicleid) == 425,playerState == PLAYER_STATE_DRIVER)
{
if(gPilot[playerid] == IS_PILOT) return GameTextForPlayer(playerid, "~r~
You are not a pilot",3000,4),RemovePlayerFromVehicle(playerid);
}
return 1;
}


image

Hello!
How to insert an image in [img][/img]?

[Sorry for my bad english,im from Romania]
Thanks!

[Include] OnPlayerTurnUpsideDown

• OnPlayerTurnUpsideDown
This include will call OnPlayerTurnUpsideDown callback in case the player turns upside down through a modification.
• Callback
PHP Code:

public OnPlayerTurnUpsideDown(playeridFloat:angle

*Upside Down (https://imgur.com/a/FuXkD) and Random Quats from sandbox will call this callback.
*Parkour mods or any other modification that turns the player upside down will call this callback.
• Demonstration
Image may be NSFW.
Clik here to view.
• Dependencies
- Pawn.RakNet: http://forum.sa-mp.com/showthread.php?t=640306
• Download
- Github

[Ajuda] Empresas

Galera, até hoje não consegui, me ajudem a criar um sistema de empresas para modo RP por favor, não adianta me mandar FS's porque já usei seach e encontrei vários, mais nada adiantou, não consegui entender o código, me mandem uma base por favor...

Again what is the difference?

I realize i posted something similar to this before it was about a normal loop and a loop called by a timer increasing a variable continuously until it reaches max players then it kills timer and resets variable value BUT you guys said that timers were only used in some cases and what not so what i wanna know now is the difference between a normal loop, the timer loop i mentioned, link : HERE
and this:
PHP Code:

CMD:healall(playerid,params[])
{
    
Loop();
    
SendClientMessage(playerid,-1,"Healed all players!");
    return 
1;
}

forward Loop();
public 
Loop()
{
    new 
players;
    if(
players<MAX_PLAYERS)
    {
        if(
IsPlayerConnected(players))
        {
            
SetPlayerHealth(players,100);
            }
        
players++;
        }
     if(
players == MAX_PLAYERS)
    {
         
players =0;
         }
    if(
players!=0)
    {
        
Loop();
        }
    return 
1;


And which would be more efficient the timer one or this or the normal foreach loop? thanks in advance.

[Include] OnPlayerTurnUpsideDown

• OnPlayerTurnUpsideDown
A callback OnPlayerTurnUpsideDown será chamada se o jogador virar de cabeça para baixo com o uso de modificações.
• Callback
PHP Code:

public OnPlayerTurnUpsideDown(playeridFloat:angle

*Upside Down (https://imgur.com/a/FuXkD) e Random Quats do mod "sorvete" vão chamar esta callback.
*Mods de parkour ou qualquer outra modifcação que vire o jogador de cabeça para baixo vão chamar esta callback.
• Demonstração
Image may be NSFW.
Clik here to view.
• Dependências.
- Pawn.RakNet: http://forum.sa-mp.com/showthread.php?t=640306
• Download
- Github
• Esclarecendo
Antes que alguém pergunte, virar o veículo de cabeça para baixo ou algo do tipo não chamará a callback, não há falsos-positivos.

Bank Robbery script.

Image may be NSFW.
Clik here to view.

Image may be NSFW.
Clik here to view.


This script gives you two possible way of robbing the bank. Go in guns blazing and Hope that the clerks comply (25% chance they do).
Or you go to our server dealer: Jim and you go in with a BANG. Watch the video if you're wondering how it works.
Let me know what you hate and love about this script if you feel like it. Thanks!



Image may be NSFW.
Clik here to view.

(press the image if you're having a rough time)



Little HELP please, +rep!!

Code:
PHP Code:

forward necuupdate();
public 
necuupdate()
{
        foreach(
Playerplayerid)
        {
        if(
UlogovanProvera[playerid] == 1)
        {
        if(
IsPlayerInAnyVehicle(playerid))
        {
        if(!
VoziloJeBicikla(GetVehicleModel(GetPlayerVehicleID(playerid))))
        {
        new 
sspeed[50];
        new 
idvv[3];
        
//GetVehicleHealth( GetPlayerVehicleID(playerid), HP );
        
format(sspeedsizeof(sspeed), "%dKM/H"GetSpeed(playerid));
        
PlayerTextDrawSetString(playeridBRZINOMER[4][playerid], sspeed);

        
format(idvvsizeof(idvv), "%d"GetVehicleModel(GetPlayerVehicleID(playerid)));
        
PlayerTextDrawSetPreviewModel(playeridBRZINOMER[3][playerid], idvv);

        new 
FloatPos[4];
        
GetVehicleVelocity(GetPlayerVehicleID(playerid), Pos[0], Pos[1], Pos[2]);
        new 
keysudlr;
        
GetPlayerKeys(playeridkeysudlr);
        }
        }
        }
}


ERROR:
PHP Code:

C:\Users\iwanmf\Desktop\San Exin Eldin\gamemodes\SE-RPG.pwn(20293) : error 035argument type mismatch (argument 3)
Pawn compiler 3.10.4              Copyright (c1997-2006ITB CompuPhase


1 Error
.
[
Finished in 3.1s with exit code 1]
[
cmd: ['pawncc.exe''-i includes''C:\\Users\\iwanmf\\Desktop\\San Exin - Eldin\\gamemodes\\SE-RPG.pwn''-d3''-Z+''-;+']]
[
dirC:\Users\iwanmf\Desktop\San Exin Eldin\gamemodes]
[
pathC:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\OpenVPN\bin;C:\Program Files\PuTTY\;C:\Users\iwanmf\AppData\Local\atom\bin;%DASHLANE_DLL_DIR%] 

Error on line:

PHP Code:

PlayerTextDrawSetPreviewModel(playeridBRZINOMER[3][playerid], idvv); 


help me with

help me guys with www.proxysite.com because whenever i download someting from it. it gives me process.php file but i dont have .rar items. its gives file like amx how can get rar without .php file??

[Include] anticheat.inc - simple but powerful anti cheat

anticheat.inc
Pre Alpha
v1.0 | Updated: 27 Dec, 2017

What this includes?
  • Anti health hack (100%)
  • Anti armour hack (100%)
  • Anti money hack (100%)
  • Anti weapon spawn hack (100%)
  • Anti weapon ammo hack (only works accurately for bullet weapons, rest just have ammo increment check, not working for static ammo hack)
  • Anti weapon range hack (100%)
  • Anti weapon damage hack (100%)

The include handle weapons/explosions server side, so damage is processed faster than it use to in OnPlayerTakeDamage. So more precise melee hits and bullet registration because everything is done under OnPlayerGiveDamage, with validity checks!

Side Note: I removed lagcomp.inc because this is a better idea, it has anticheat as well as lagcomp fix both!

What are the new callbacks?
Note: You won't be able to use "OnPlayerGiveDamage" and "OnPlayerTakeDamage" after including this library. "OnPlayerDamage" handles both in one callback.
PHP Code:

/******************************************************************************/
// Function:    OnPlayerDamage

// Purpose:     Called when a player takes/gives damage; either self inflicted or player to player.

// Parameters:  <playerid> - player who took damage
//              <issuerid> - player who gave damage (it can be INVALID_PLAYER_ID if damage was self inflicted)
//              <weaponid> - weapon used to give damage
//              <amount> - how much damage was inflicted
//              <bodypart> - what bodypart of "playerid" was hit
//              <death> - "true" if player will die after the damage is processed through callback

// Return:      "0" - don't process damage and player won't take damage (can be used for RP purpose)
/******************************************************************************/
public OnPlayerDamage(playeridissueridweaponidFloat:amountbodypartbool:death) {

    return 
1;
}

/******************************************************************************/
// Function:    OnPlayerCheat

// Purpose:     Called when a player tries to hack/cheat.

// Parameters:  <playerid> - player who's using the hacks
//              <type> - what type of hacks were detected (look at list of definitions for type ids)

// Return:      "0" - include won't reset stats and you can do your stuff there, like kick or ban
//              (for example: if player is detected for weapon hack, and you return "1": include will reset player weapons to original and legit weapons)
/******************************************************************************/
public OnPlayerCheat(playeridtype) {

    return 
1;


Cheat definitions:
Macro nameValue
CHEAT_TYPE_HEALTH0
CHEAT_TYPE_ARMOUR1
CHEAT_TYPE_MONEY3
CHEAT_TYPE_WEAPON4
CHEAT_TYPE_WEAPON_AMMO4
CHEAT_TYPE_WEAPON_RANGE5
CHEAT_TYPE_WEAPON_DAMAGE6

What are the new functions?
PHP Code:

/******************************************************************************/
// Function:    SetPlayerWeaponDamage

// Purpose:     Set a player's weapon damage value (only applicable to "Player" damage "Player")

// Parameters:  <playerid> - playerid whose weapon data is to modify
//              <weaponid> - weaponid whose damage value is to modify
//              <damage> - damage value

// Return:      "0" - unsuccessful
//              "1" - successfully damage has been modified
/******************************************************************************/
SetPlayerWeaponDamage(playeridweaponidFloat:damage);

/******************************************************************************/
// Function:    GetPlayerWeaponDamage

// Purpose:     Get a player's weapon damage value (only applicable to "Player" damage "Player")

// Parameters:  <playerid> - playerid whose weapon data is to retrieve
//              <weaponid> - weaponid whose damage value is to retrieve

// Return:      "0.0" - unsucessful or damage value is 0.0 which is invalid
//              "<floating value>" - successfully return damage value greater than 0.0
/******************************************************************************/
Float:GetPlayerWeaponDamage(playeridweaponid);

/******************************************************************************/
// Function:    PlayerDeath

// Purpose:     Kill a player with your own death reason and killer

// Parameters:  <playerid> - playerid to kill
//              <killerid> - killerid who killed playerid virtually!
//              <reason> - weaponid/reason of which "playerid" died

// Return:      "0" - unsucessful
//              "1" - successful
/******************************************************************************/
PlayerDeath(playeridkilleridreason); 

Download
https://github.com/Agneese-Saini/SA-.../anticheat.inc

vending.inc - You require this little library to compile this include: (its server sided vending machines)
https://github.com/Agneese-Saini/SA-...de/vending.inc

* You have to include this library in ever script you are using (filterscripts and gamemode).

[+REP] error 025: function heading differs from prototype

ERROR:
HTML Code:

C:\Users\iwanmf\Desktop\DB\pawno\include\YSI\y_hooks/impl.inc(2336) : error 025: function heading differs from prototype
C:\Users\iwanmf\Desktop\DB\pawno\include\YSI\y_hooks/impl.inc(2383) : error 025: function heading differs from prototype

ERROR LINE:
HTML Code:

2336: CreateDynamicObject(970, 1605.90, -1138.56, 23.17,  0.00, 0.00, 90.00);
I'm have y_als from FIX link, but when i put
HTML Code:

//beforeCreateDynamicObject(970, 1605.90, -1138.56, 23.17,  0.00, 0.00, 90.00);
i still get error on same line :P
Include sorted by:
HTML Code:

#include < a_samp >
#include < a_objects >
#include < core >
#include < float >
#include < time >
#include < morphinc >
#include < file >
#include < foreach >
#include < streamer >
#include < YSI\y_ini >
#include < YSI\y_commands >
#include < sscanf2 >

Yugioh Card in samp 0.3.8

Today i made a yugi card "Change of Heart" if you know it.
Why did i make this? Beacuse i am gonna make a duel system.
SA-MP 0.3.8-RC4

Image: Image may be NSFW.
Clik here to view.

I hope you like it

[Off] Ajuda no gamemode

Procuro gente experiente para me ajudar a acabar uma gamemode.
Quer saber +?

Chame privado.

PHP Code:

NRV 60

Viewing all 18226 articles
Browse latest View live


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