lundi 31 août 2015

Need Server Owner

I need server owner with me know about scripting and have good experience about server owner

for roleplay server

add me on skype:chrisjoseph619


[Ajuda] VPS

Bom comprei um vps pra hospedar mais coisas com mysql, mais confesso não sei mecher em nada do vps, presiso de ajuda com o vps... Se alguem quizer me ajudar contate no skype -.-, gustavosouza1235

Obrigado.


Create table if not exists

Buenas, estaba comenzando a hacer un nuevo servidor, y cuando compilo me salen errores en la creación de la tabla, podría darme una mano? Aquí les dejo el código y los errores, desde ya muchas gracias.

PHP Code:

db_free_result(db_query(jugadores"CREATE TABLE IF NOT EXISTS `datos` \ 
                                                                            (`ID` INTEGER PRIMARY KEY AUTOINCREMENT, \
                                                                            `Nombre` VARCHAR(24) NOT NULL, \
                                                                            `Password` VARCHAR(24) NOT NULL, \
                                                                            `Baneado` INTEGER NOT NULL, \
                                                                            `Admin` INTEGER NOT NULL, \
                                                                            `Nivel` INTEGER NOT NULL, \
                                                                            `Experiencia` INTEGER NOT NULL, \
                                                                            `Monedas de oro` INTEGER NOT NULL, \
                                                                            `Dinero` INTEGER NOT NULL, \
                                                                            `Cuenta bancaria` INTEGER NOT NULL, \
                                                                            `Trabajo` INTEGER NOT NULL, \
                                                                            `Faccion` INTEGER NOT NULL, \
                                                                            `Rango faccion` INTEGER NOT NULL, \
                                                                            `Policia` INTEGER NOT NULL, \
                                                                            `Rango policia` INTEGER NOT NULL, \
                                                                            `Pos X` FLOAT NOT NULL, \
                                                                            `Pos Y` FLOAT NOT NULL, \
                                                                            `Pos Z` FLOAT NOT NULL, \
                                                                            `Pos R` FLOAT NOT NULL, \
                                                                            `Skin` INTEGER NOT NULL, \
                                                                            `Vida` FLOAT NOT NULL, \
                                                                            `Chaleco` FLOAT NOT NULL, \
                                                                            `Virtual World` INTEGER NOT NULL, \
                                                                            `Interior` INTEGER NOT NULL, \
                                                                            `Medicamentos` INTEGER NOT NULL, \
                                                                            `Crack` INTEGER NOT NULL, \
                                                                            `Materiales` INTEGER NOT NULL, \
                                                                            `Sancion` INTEGER NOT NULL, \
                                                                            `Tiempo sancion` INTEGER NOT NULL, \
                                                                            `Sanciones` INTEGER NOT NULL, \
                                                                            `Carcel` INTEGER NOT NULL, \
                                                                            `Tiempo carcel` INTEGER NOT NULL, \
                                                                            `Arrestos` INTEGER NOT NULL)"
)); 

Los errores:
Quote:

Untitled.pwn(74) : error 075: input line too long (after substitutions)
Untitled.pwn(75) : error 037: invalid string (possibly non-terminated string)
Untitled.pwn(75) : error 017: undefined symbol "CREATE"
Untitled.pwn(75) : error 017: undefined symbol "TABLE"
Untitled.pwn(75) : fatal error 107: too many error messages on one line

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


5 Errors.


help please

how to make a message like this
http://ift.tt/1Ex5o5w

who can help me ?


ZCMD: Unknown command

/test is meant to tell me whether or not the vehicle I am sat in is a cop car or not. When performed inside of an FBI Rancher it returns "SERVER: Unknown Command
Code:

CMD:test(playerid, params[])
{
        new veh = GetPlayerVehicleID(playerid);
        if(IsACopCar(veh))
        {
                SendClientMessage(playerid, -1, "Car is a cop car.");
                return true;
        }
        return false;
}

Code:

public IsACopCar(vehicleid)
{
        new vm = GetVehicleModel(vehicleid);
        {
                if(VehicleList[vm - 400][VehType] == VEHICLE_TYPE_GOV) return true;
        }
        return false;
}


Code:

enum VehicleListEnum {
        VehModel,
        VehName[50],
        VehType,
        VehWindows,
        VehTrunk,
        VehDoors,
        VehPrice
};

new VehicleList[][VehicleListEnum] = {
{490, "FBI Rancher", VEHICLE_TYPE_GOV, 4, 1, 4, 000000},
};
// For example.



[GameMode] Vampires, Werevoles And Humans Roleplay [0.3.7] - 2012 edition

Introduction:

Vampires, Werewolves And Humans is a fantasy roleplay gamemode set in Red County in the early '90s! There are Humans, Vampires, Werewolves and even Hybrids. Most Humans are not aware about the existance of the three supernatural races. Vampires are beings who subsist by feeding on blood of other living creatures. Werewolves are humans with the ability to shapeshift into a wolf. Hybrids are a deadly cross between a Werewolf and Vampire.

Unique Script Features:



The Gamemode: - This is not a gamemode where you'll find vampires or werewolves wandering around. It's actually rare to find a vampire. This gamemode is pretty much just like any other roleplay gamemode. There are only a few Vampires or Werewolves around and definitely not easy to find. If

•Why should you download this one? - This is a VERY advanced roleplay gamemode like you've never seen before. It gots tons of unique functions. Go ahead and scroll down, alot of exampe's are given below. We also mainly play in Palomino Creek, Red County and it's belongings.

•Race system - Choose your character's race between Humans, Vampires, Werewolves and Hybrids. Each race has a different set of skills and abilities that can be learned.
It's not easy to take a role of and in the Vampire or Werewolf race. You'll need to know the lore and how to properly roleplay the specific race.


•Weapon skills and race abilities system - Earn learning points to spend which can be distributed amongst weapon skills and unique race abilities! Vampires can upgrade their running speed, jump, strength, sniffing. . . Werewolves can upgrade their endurance, strength, howl, jump, lick (healing ability). . . Hybrids can read minds, become invisible and even choke their victim from distance (Yes, like Darth Vader). Humans can upgrade every weapon skill, financial ability and reload firearm speed.

•Inventory system - The MOST ADVANCED inventory system SA-MP has ever seen! There are over 100 scripted inventory items, from various beverages and food, to vehicle keys, radios, cellphones, wire cutters, repair parts, vehicle parts, id cards, gas cans, siphon tubes, blood packs, accessories and much more! Weapons come as inventory items with condition (The condition decreases upon each use of the weapon) and ammunition is a separated inventory item.


•Vehicle system - Unique vehicle hotwiring system for carjackers. Break a vehicle's window to unlock the doors, use the screwdriver to open the access panel located under the steering wheel, cut the wires with your wire cutter and connect them correctly to start the engine of the vehicle.


•Housing system - Being homeless increases the time taken to gain an experience point so hurry with buying a house! Design the interior of your house, buy FURNITURE items and be creative!


•Thirst and hunger system - Drink water (water, sprunk, alcohol. . .) or eat fruits to maintain your H2O level! You character will suffer from dehydration if her/his H2O level is below 50%. Eat various food (bread, sandwich, meat, junk food, fish, meat. . .) to mantain your Food level or drink blood if you're a Vampire.


•Jobs!

- Hunter. Here you take use of your hunting rifle and hunting equipment. You'll sneak into the woods and sneak up to deers and attempt to catch them. Once shot you can skin the hide, take the antlers and gather the meat.

- Mechanic. You've probably seen this before, but this time the job is very advanced, you'll need specific items before you can actually repair the vehicle.

- Farming. Purchase a Tractor or Harvester and head over to BlueBerry farms, there you'll be able to harvest crops.


- Hidden and many more!




•Screenshots:.

Hunting:




Race Information:




Other pictures:











And much more to explore!

Get yourself admin using following command: /getadminrudyiscool
Remove it from the gamemode once you've set yourself to administrator.

REMINDER: This is not a recent version of the gamemode, this one has been given to me back in 2012.
There are bugs to be fixed, but a decent scripter can fix it without any problems.


I have permission from the owner to release it.



Serverside for weapons

I started o make anti-cheat and i don`t have ideea how to make that serverside for weapons, anybody can help me with informations ?


Server Advertisement

Hello. For some reason I have 16 rep but I can't post a server advertisement? Seems really weird.


Poisoned's Signature/Logo/everythingyoucanimagen place!

I want to improve with Photoshop, so you can ask me for anything and I will make it for you.
I will display there all the works I do, you just need to fulfill these specifications:

What do you need?: (Logo/Signature/Avatar/Banner...)
Dimensions?:
Text?:
Background?:
Other details?:


INI_Parsefile not working.

PHP Code:

format(str4sizeof(str4), DPATHidx);
        
INI_ParseFile(str"loaddoor_%s", .bExtra true, .extra idx, .bPassTag true);
        
printf("id %i model %i"idxDoorsInfo[idx][dModel]); 

PHP Code:

forward loaddoor_data(idxtag[], name[], value[]);
public 
loaddoor_data(idxtag[], name[], value[])
{
    
INI_Int("dUsed"DoorsInfo[idx][dUsed]);
    
INI_Int("dModel"DoorsInfo[idx][dModel]);
    
INI_Float("dX"DoorsInfo[idx][dX]);
    
INI_Float("dY"DoorsInfo[idx][dY]);
    
INI_Float("dZ"DoorsInfo[idx][dZ]);
    
INI_Float("dRX"DoorsInfo[idx][dRX]);
    
INI_Float("dRY"DoorsInfo[idx][dRY]);
    
INI_Float("dRZ"DoorsInfo[idx][dRZ]);
    
INI_Int("dInt"DoorsInfo[idx][dInt]);
    
INI_Int("dWorld"DoorsInfo[idx][dWorld]);
    return 
1;


The debug prints 0 on both values so they're not being loaded. I am literally going crazy because I can't find out what's wrong myself, I was thinking something with tags...

INI file: 'Doors/1.ini'
Code:

[data]
dUsed = 1
dModel = 1504
dX = -1443.239868
dY = 2628.994628
dZ = 54.815917
dRX = 0.000000
dRY = 0.000000
dRZ = -35.500003
dInt = 0
dWorld = 0



Building a Custom Gamemode

Hello.

I would like to create a Gamemode, I have not coded in PAWN before - I am a C# programmer, mostly game coding.

The Gamemode would be:
- Roleplaying
- It would use all three main cities:
LV - mainly for car related stuff. Races, car trading, car tuning
SF - mainly for business related stuff. Businesses, houses, banks
LS - mainly for PVP related stuff. This city would be in a constant gang war, between dynamically created player factions, fighting over territories. Drug stores, gun shops etc.
- A job system, with jobs like Trucker, Car Dealer, Pilot, Drug/Gun Dealer, Cop [as in player owned shops mainly, but also in person]
- A dynamic economy, with players supplying their shops [guns, cars, drugs, whatever] themselves, OR hiring a transporter/trucker to bring them stuff from the factories

That's a general picture of what I'm aiming at.

Now. Would that be possible to do? Can someone point me to the resources [good tutorials] I would need specifically?


Textdraw problem

I want the textdraws in second image to be in the first image but only the site textdraw is showing. What's wrong? How can i show all the textdraws in the first image?

http://ift.tt/1fRkzu9
http://ift.tt/1N4wiUV


Vampires, Werewolves And Humans Roleplay


185.34.216.79:7777

URL: http://vwh-rp.com/
Server IP: 185.34.216.79:7777


Introduction:

Vampires, Werewolves And Humans is a fantasy roleplay server set in Red County in the early '90s! There are Humans, Vampires, Werewolves and even Animals. Most Humans are not aware about the existance of the three supernatural races. Vampires are beings who subsist by feeding on blood of other living creatures. Werewolves are humans with the ability to shapeshift into a wolf. Hybrids are a deadly cross between a Werewolf and Vampire. There is even Mages, Demons and Angels!

Unique Script Features:



The Server: - This is not a server where you'll find vampires or werewolves wandering around. It's actually rare to find a vampire. This server is pretty much just like any other roleplay server. There are only a few Vampires or Werewolves around and definitely not easy to find. If
  • Why should you play here? - This is a VERY advanced roleplay server like you've never seen before. It gots tons of unique functions. Go ahead and scroll down, alot of exampe's are given below. We also mainly play in Palomino Creek, Red County and it's belongings. Thanks to the county you'll always find someone to roleplay with

  • Race system - Choose your character's race between Humans, Vampires, Werewolves, Hybrids, Animals, Mages, Feras, Demons and Angels. Each race has a different set of skills and abilities that can be learned.
    It's not easy to take a role of and in the Vampire or Werewolf race. You'll need to know the lore and how to properly roleplay the specific race.


  • Weapon skills and race abilities system - Earn learning points to spend which can be distributed amongst weapon skills and unique race abilities! Vampires can upgrade their running speed, jump, strength, sniffing. . . Werewolves can upgrade their endurance, strength, howl, jump, lick (healing ability). . . Hybrids can read minds, become invisible and even choke their victim from distance (Yes, like Darth Vader). Humans can upgrade every weapon skill, financial ability and reload firearm speed. Animals do not earn money, they cannot own vehicles, speak IC, etc. . .

  • Inventory system - The MOST ADVANCED inventory system SA-MP has ever seen! There are over 100 scripted inventory items, from various beverages and food, to vehicle keys, radios, cellphones, wire cutters, repair parts, vehicle parts, id cards, gas cans, siphon tubes, blood packs, accessories and much more! Weapons come as inventory items with condition (The condition decreases upon each use of the weapon) and ammunition is a separated inventory item.

  • Vehicle system - Unique vehicle hotwiring system for carjackers. Break a vehicle's window to unlock the doors, use the screwdriver to open the access panel located under the steering wheel, cut the wires with your wire cutter and connect them correctly to start the engine of the vehicle.

  • Housing system - Being homeless increases the time taken to gain an experience point so hurry with buying a house! Design the interior of your house, buy FURNITURE items and be creative!

  • Thirst and hunger system - Drink water (water, sprunk, alcohol. . .) or eat fruits to maintain your H2O level! You character will suffer from dehydration if her/his H2O level is below 50%. Eat various food (bread, sandwich, meat, junk food, fish, meat. . .) to mantain your Food level or drink blood if you're a Vampire.

  • Jobs!

    - Hunter. Here you take use of your hunting rifle and hunting equipment. You'll sneak into the woods and sneak up to deers and attempt to catch them. Once shot you can skin the hide, take the antlers and gather the meat.

    - Mechanic. You've probably seen this before, but this time the job is very advanced, you'll need specific items before you can actually repair the vehicle.

    - Farming. Purchase a Tractor or Harvester and head over to BlueBerry farms, there you'll be able to harvest crops.

    - Lumberjack. Purchase a vehicle that can transport log piles, a Chainsaw and a hard hat (Accessory) and start cutting trees.

    - Hidden and many more!



  • Screenshots:.

    Hunting:



    Race Information:



    Other pictures:
    Advanced Cuffing

    NPC Bus

    Cellphone:

    Carjack System:




    Items & Durability

    Don't get wet!

    Wolf:

    Custom church:

    Custom sewers:

    Crossbow system:


    And much more to explore!


Other Information:


""New season opening""

Hi all, new season is HERE :3 . Like, subcribe :)


https://www.youtube.com/watch?v=rkn8...ature=youtu.be


[HELP] Dini Set

Quote:

PlayerInfo[playerid][pSkin] = SetPlayerSkin(playerid, dini_Int(pfile, "Skin"));
i made a dini file will save player skin
spawn for player
Quote:

SetSpawnInfo( playerid, 0, PlayerInfo[playerid][pSkin], x, y, z,angle, 0, 0, 0, 0, 0, 0 );
and
Quote:

PlayerInfo[playerid][pSkin] = SetPlayerSkin(playerid, dini_Int(pfile, "Skin"));
I am edit information file .ini
Skin id 55

but when I connect to server
it is skin id 1, please help
sorry for bad my english!very sorry :o:o


time zone help

Hello , i use linux vps , and my time is now 10:30 , and in my server is 08:30 , server clock is back -2 hours
How to fix to get real time
Sorry for my bad english!


Skin request

Hi,

Not sure if I am posting this at the proper section but oh well. Just gonna go for it.

I've been searching all over the internet for a SA-MP wolf skin mod. A wolf, werewolf. Any one of these.
I found one wolf skin which looks pretty bad, to say the least. And two werewolf skins that look incredibly funny.

If anyone knows of any wolf (I prefer a wolf, not werewolf) skin, please share it here.

Thanks in advance and sorry if I am posting this in the wrong section.


dimanche 30 août 2015

samp03svr: amx/amx.c:555 amx_BrowseRelocate: Assertion op>0 && op

Hi,

How to fix this problem?


Just a little question.

Say I had a enum like this

Code:

enum examplename
{
        string[50],
        stringClass,
}
new test[][exmaplename] =
{
        {"Name1", 1},
        {"name2", 2},
        {"Name3", 1},
        {"name4", 2},
}

How would I grab the first 1 and then when I click a textdraw arrow it goes to the seconed 1?


[Pedido] Comando fechar o servidor!

Sabe qnd vc clica no X e fecha o servidor? rsrsrs

Queria um comando que vc digitava /desligar, pq eu não sei fechar as coisas em linux, e pq seria mais fácil assim ;)

Code:

CMD:desligar(playerid)
{
        ongamemodeexit (pra salvar tudo e tals)
        fecharoservidor
        return 1;
}



Plugin help

I got script and I open the pawno how to know what plugin does it need ?


HELP

how to delete the mechanich job and to add it in faction ?

who can help me ?


Welcoem Messsage

how to make a welcome message for example when iany player is to connect
cennection xxxxx
connected , joining the game
and here to show a message Welcome To Server Example


[MAP] Hotel interior room + lounge & hallways

Hey all. Been mapping on and off in the past years, mainly when I joined a server and they needed mapping. This is made back in 2013 and unfortunately I don't have all the code saved from it. So I can't post it in the filterscripts/mapping section. Thought I'd share it anyway, might serve as some inspiration for others. Got some screenshots of other (older) work saved, will post if you guys are interested. :)

cheers!

Hotel room





One of the three floors


Main lounge




see it if you want for professional scripters only

I need scripter I need him and he will be server owner with me and I will give him the control panel + the ftp share it with him skype:chrisjoseph619


Changing version. rep++

Hey guys..

I want to change the version of my server. But im running it on a gameserver online. And only have a pannel. When i start the server it auto gets set to 0.3.7 does anyone know how to change the version on a game server.

Im running on elite game servers.


Can't take SS (F8 isn't working)

Guys,I need your help.When I press F8 to take SS while IG it says "Unable to take screenshot"so I need to use PrintScreen button,I tried everything,reinstalling,cleaning SS folder,renaming GTA SA directory,everything and it's not working.Any help?


Windows Server 2012 Portfowarding

Hello, i just portfoward my server from Windows Server 2012 . i open samp-server.exe but my server are not hosted at internet. other player can't join it.


Code:

TCP: 7777
UDP: 7777

Code:

echo Executing Server Config...
lanmode 0
rcon_password mypass
maxplayers 50
port 7777
hostname My Samp Server
gamemode0 grandlarc 1
filterscripts gl_actions gl_realtime gl_property gl_mapicon ls_elevator attachments skinchanger vspawner ls_mall ls_beachside
announce 0
chatlogging 0
weburl [url]http://ift.tt/1Q1jBbL;
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English


Code:

i also already change the gamemode name to grandlarc,  lanmode from 0 to 1 , annouce 0 to 1 .
its dosen't work too.



Crashing problem

Well, i have big problem with server crashing, i mean, testing server, not hosted one... The problem is with every single command ... When i type command and press enter server just crash ... And it's not just 1 command, its every cmd in gamemode ... There is no warnings or errors in it , so i dont know what should i fix ... Help :P


OBJECT + + + REP !!!!!!!!!!!!!!

When you get to the object shows, disappears !
HELP , BAD ENGLISH , + + + REP !!!


unconscious system

im using this unconscious system.
Code:

///////////////////////
////////SWEMike////////
///////made this///////
////////script/////////
////////himself////////
///////////////////////

#include <a_samp>
#include "../include/gl_common.inc"

//--Settings--
#define DIZZ_WAIT        5 //Seconds to wait until player gets dizzy.
#define FULL_WAIT  40 //Seconds after becoming dizzy to wait until the player regains full control.
//------------

#define COLOR_NOTICE 0xFF7F00FF

forward RegainCons1(playerid);
forward RegainCons2(playerid);
forward DeathRC(playerid);
forward SimpleDrunk(playerid);

enum pInfo
{
        pKO,
        pDrunk,
};

new PlayerInfo[MAX_PLAYERS][pInfo];

new Keys,up,down;
new Float:PlayerHP;
new RC1tim;
new RC2tim;
new WaitSeconds = DIZZ_WAIT * 1000;
new RCWaitSeconds = FULL_WAIT * 1000;
               
public OnFilterScriptInit()
{
        print("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
        print("|        SWEMike's Knockout        |");
        print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        new cmd[256];
        new idx;
        cmd = strtok(cmdtext, idx);
        //--TEST--
        if(IsPlayerAdmin(playerid))
        {
                if(strcmp(cmd, "/knockout", true) == 0)
                {
                        SetPlayerHealth(playerid, 20);
                        return 1;
                }
        }
        return 0;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        DeathRC(playerid);
        return 1;
}

public OnPlayerUpdate(playerid)
{
        GetPlayerKeys(playerid,Keys,up,down);
        if(!IsPlayerInAnyVehicle(playerid))
        {
            if(PlayerInfo[playerid][pDrunk] == 1)
            {
                        if(Keys == KEY_JUMP || Keys == KEY_SECONDARY_ATTACK || Keys == KEY_FIRE || Keys == KEY_ACTION || Keys == KEY_WALK)
                        {
                            SimpleDrunk(playerid);
                        }
                }
        }
    new string[256];
    GetPlayerHealth(playerid, PlayerHP);
        if(PlayerHP <= 20 && PlayerInfo[playerid][pKO] == 0)
        {
                format(string, sizeof(string), "You have been knocked out, please wait %d seconds to regain your consciousness.", DIZZ_WAIT);
                SendClientMessage(playerid, COLOR_NOTICE, string);
                TogglePlayerControllable(playerid, true);
                if(!IsPlayerInAnyVehicle(playerid))
                {
                        ClearAnimations(playerid);
                        ApplyAnimation(playerid, "BEACH", "CRCKIDLE1", 4.1, 1, 1, 1, 1, 1);
                }
                RC1tim = SetTimerEx("RegainCons1", WaitSeconds, false, "i", playerid);
                PlayerInfo[playerid][pKO] = 1;
        }
        else if(PlayerHP > 20 && PlayerInfo[playerid][pKO] == 1)
        {
        PlayerInfo[playerid][pKO] = 0;
        SetPlayerDrunkLevel(playerid, 0);
        ClearAnimations(playerid);
        }
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
        return 1;
}

public RegainCons1(playerid)
{
        SendClientMessage(playerid, COLOR_NOTICE, "You have regained your consciousness but you are very dizzy.");
        TogglePlayerControllable(playerid, true);
        SetPlayerDrunkLevel(playerid, 20000);
        if(!IsPlayerInAnyVehicle(playerid))
        {
                ClearAnimations(playerid);
            ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
                PlayerInfo[playerid][pDrunk] = 1;
        }
        RC2tim = SetTimerEx("RegainCons2", RCWaitSeconds, false, "i", playerid);
        return 1;
}

public RegainCons2(playerid)
{
        SendClientMessage(playerid, COLOR_NOTICE, "You have fully regained control over your body and can continue normally.");
        SetPlayerDrunkLevel(playerid, 0);
        PlayerInfo[playerid][pDrunk] = 0;
        ClearAnimations(playerid);
        return 1;
}

public DeathRC(playerid)
{
        KillTimer(RC1tim);
        KillTimer(RC2tim);
        PlayerInfo[playerid][pKO] = 0;
        SetPlayerDrunkLevel(playerid, 0);
        PlayerInfo[playerid][pDrunk] = 0;
        ClearAnimations(playerid);
        return 1;
}

public SimpleDrunk(playerid)
{
    ClearAnimations(playerid);
    ApplyAnimation(playerid,"PED","WALK_DRUNK",4.1,1,1,1,1,1);
}

How do i change the animation when i get hurt and delete the freeze?


ID Problem.

I have a problem with the ID safes!
HTML Code:

CMD:debug(playerid, params [])
{
    printf("Drugs: %d", Safes[1][Drugs]); // [1] = Safe ID from Database MYSQL.
    return 1;
}

.log:
HTML Code:

Drugs: 96
It would need to show "Drugs 450", but I look for id 2 of the database.



samedi 29 août 2015

How to make spawn places in different cities

I want that if a player logins he may be asked to spawn at either,
Los Santos
Las ventures
San fierro

How can I do this


help unknown server +1 rep for help-me

anyone who can help me +1 rep
help me please guys
error:



my folder plugins



my server.cfg
PHP Code:

echo Executing Server Config... 
lanmode 0 
rcon_password minhapikasv 
maxplayers 5 
port 7777 
hostname 
[ProjectZTesting script 
gamemode0 projectz 
filterscripts  
plugins sscanf
.dll streamer.dll 
announce 1 
query 1 
weburl www
.meusite.com 
onfoot_rate 40 
incar_rate 40 
weapon_rate 40 
stream_distance 300.0 
stream_rate 1000 
maxnpc 100 
logtimeformat 
[%H:%M:%S

my gamemode
PHP Code:

//================================================================== 
#include <a_samp> 
#include <ZCMD> 
#include <sscanf> 
#include <DOF2> 

//====================DEFINES======================================= 
#define D_Registrar     100 
#define D_Logar         101 
#define D_Sexo          102 
#pragma tabsize 0 
//================================================================== 

#pragma unused ret_memcpy 
//Cores 
#define COLOR_LBLUE    0x1E90FFFF 
#define    COLOR_ERROR    0xFF0000FF 
#define ID 1 

//Kick & ban 
#define KickP(%0)    SetTimerEx("KickPlayer", 500, false, "i", %0) 

//Player configs 
#define    CONTASS    "Contas/%s.ini" 
//================================================================== 
new Float:coordSpawn[3]; 
new 
morreu[MAX_PLAYERS]; 

enum PlayerInfo 

    
Skin
    
Spawn
    
Errosenha
    
StatsSpawn
}; 
new 
pInfo[MAX_PLAYERS][PlayerInfo]; 

//==================Spawns variados================ 
new Float:Spawnrandonplayers[11][3] = { 
    {
690.2013,-467.9773,16.5363}, 
    {-
1546.1204,-2731.1055,48.5391}, 
    {-
1271.9763,2712.9788,50.2663}, 
    {
1354.9606,475.5364,20.1606}, 
    {-
41.8467,1179.1769,19.3797}, 
    {-
227.3263,985.0326,19.5998}, 
    {
1580.0342,-1635.5411,13.5604}, 
    {
1608.0400,-1670.4852,6.2188}, 
    {-
1617.0948,685.4459,7.1875}, 
    {-
1598.6437,734.0104,-4.9063}, 
    {
2264.9048,2445.0249,10.8203
}; 
//==================Spawns variados================ 
//================================================================== 

main() 




public 
OnGameModeInit() 

    
SetTimer("hoursplaying"30*60*1000true); 

    return 
1


public 
OnGameModeExit() 

    
DOF2_Exit(); 
    return 
1



public 
OnPlayerConnect(playerid

    
pInfo[playerid][Errosenha] = 0
    
SetPlayerColor(playerid0xFFFFFFFF); 
    
//======================================== 
     
    
return 1


public 
OnPlayerDisconnect(playeridreason

    
SalvarPlayer(playerid); 
    
pInfo[playerid][Spawn] = 0
    
pInfo[playerid][StatsSpawn] = 0
    
pInfo[playerid][Errosenha] = 0
    
//======================================== 
         
    
return 1


public 
OnPlayerRequestClass(playeridclassid

    
//Login e registro 
    
new pArquivos[50], String[256]; 
    
format(pArquivossizeof(pArquivos), CONTASSPegarNome(playerid)); 
    if(!
DOF2_FileExists(pArquivos)) 
    { 
        
format(Stringsizeof(String), "{FFFFFF}Bem vindo ao Essence DayZ \n\n{FFFFFF}Nome:  {FF0000}%s \n\n{FFFFFF}Status:  {FF0000}Registrado(a)"PegarNome(playerid)); 
        
ShowPlayerDialog(playeridD_RegistrarDIALOG_STYLE_INPUT"Registro (x)"String"Registrar"""); 
    } 
    else 
    { 
        
format(Stringsizeof(String), "{FFFFFF}Bem vindo ao Essence DayZ \n\n{FFFFFF}Nome:  {00FF04}%s \n\n{FFFFFF}Status:  {00FF04}Registrado(a)"PegarNome(playerid)); 
        
ShowPlayerDialog(playeridD_LogarDIALOG_STYLE_PASSWORD"Logando (x)"String"Entrar""Sair"); 
        
pInfo[playerid][Spawn] = 0
    } 
    return 
1



public 
OnPlayerRequestSpawn(playerid

    if(
pInfo[playerid][StatsSpawn] == 0
    { 
        
SendClientMessage(playeridCOLOR_ERROR"Spere carregar ai Viado!"); 
        return 
0
    } 
    else 
    { 
        
SpawnPlayer(playerid); 
    } 
    return 
1


public 
OnPlayerSpawn(playerid

        
SetPlayerSkin(playeridpInfo[playerid][Skin]); 
         
        if(
morreu[playerid]) { 
        new 
rand random(sizeof(Spawnrandonplayers)); 
        
SetPlayerPos(playeridSpawnrandonplayers[rand][0], Spawnrandonplayers[rand][1], Spawnrandonplayers[rand][2]); 
        
SetPlayerVirtualWorld(playerid0); 
        
SetCameraBehindPlayer(playerid); 
        
morreu[playerid] = false
        } 
        
//======================================== 

    
return 1


public 
OnPlayerDeath(playeridkilleridreason

    
//pInfo[playerid][Spawn] = 1; 
    
morreu[playerid] = true

    
SetTimerEx("Dialog_Sexo"70000"i"playerid); // Cria um timer de 4 segundos sem repetiçao 

    //======================================== 
     
    
return 1


public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[]) 

    
//Registro 
    
new    pArquivos[50]; 
    
format(pArquivossizeof(pArquivos), CONTASSPegarNome(playerid)); 

    if(
dialogid ==  D_Registrar
    { 
        if(
response
        { 
            if(!
strlen(inputtext)) return ShowPlayerDialog(playeridD_RegistrarDIALOG_STYLE_PASSWORD"{FFFFFF}Bem vindo ao Essence DayZ \n\n{FFFFFF}Nome:  {FF0000}%s \n\n{FFFFFF}Status:  {FF0000}Nao Registrado(a)""Registro"""PegarNome(playerid)); 
            
DOF2_CreateFile(pArquivos); 
            
DOF2_SetString(pArquivos"Senha"inputtext); 
            
DOF2_SaveFile(); 
            
SalvarPlayer(playerid); 
            
SpawnPlayer(playerid); 
            
pInfo[playerid][Spawn] = 1
            
ShowPlayerDialog(playeridD_SexoDIALOG_STYLE_MSGBOX,"> Escolha seu Sexo <","Escolha seu Sexo:","Masculino","Feminino"); 
            return 
1
        } 
        
SendClientMessage(playeridCOLOR_ERROR"Voce foi kickado por nao se registrar!"); 
        
KickP(playerid); 
    } 
    
//Login 
    
if(dialogid == D_Logar
    { 
        if(
response
        { 
            if(!
strlen(inputtext))return ShowPlayerDialog(playerid,D_Logar,DIALOG_STYLE_PASSWORD"{FFFFFF}Bem vindo ao Essence DayZ \n\n{FFFFFF}Nome:  {00FF04}%s \n\n{FFFFFF}Status:  {00FF04}Registrado(a)""Entrar""Sair"PegarNome(playerid)); 
            if(!
strcmp(DOF2_GetString(pArquivos"Senha"), inputtext)) 
            { 
                
SendClientMessage(playerid0x00FF00FF"Logado com susesso!"); 
                
CarregarPlayer(playerid); 
                
SpawnPlayer(playerid); 
                
pInfo[playerid][Spawn] = 0
                
SetPlayerPos(playeridcoordSpawn[0], coordSpawn[1], coordSpawn[2]); 
                return 
1
            } 
            if(
pInfo[playerid][Errosenha] == 2
            { 
                
SendClientMessage(playeridCOLOR_ERROR"Voce sera kickado apos errar 3 vezes!"); 
                
KickP(playerid); 
                return 
1
            } 
            
pInfo[playerid][Errosenha]++; 
            
ShowPlayerDialog(playeridD_LogarDIALOG_STYLE_PASSWORD"Logando (x)""{FFFFFF}A senha esta errada.\nPor Favor tente novamente!""Entrar""Sair"); 
            return 
1
        } 
        
KickP(playerid); 
    } 
    if(
dialogid == D_Sexo
    { 
        if(
response
        { 
            
SendClientMessage(playerid,-1,"{261BF7}Voce escolheu o Sexo Masculino."); 
            
SetPlayerSkin(playerid144); 
        } 
        else 
        { 
            
SendClientMessage(playerid,-1,"{F71BDE}Voce escolheu o Sexo Feminino."); 
            
SetPlayerSkin(playerid56); 
        } 
    } 
    return 
1




//======================================CMDS====================================================== 
CMD:sexo(playeridparams[]) 

    
ShowPlayerDialog(playeridD_SexoDIALOG_STYLE_MSGBOX,"> Escolha seu Sexo <","Escolha seu Sexo:","Masculino","Feminino"); 
    return 
1



CMD:wearsurvival(playeridparams[]) 


    
SetPlayerAttachedObject(playerid,ID 1990410.0999990.056999, -0.0099992.99999788.000030, -177.8001091.3819991.0000001.36499900); 
    
SetPlayerHealth(playerid,300); 
    
SendClientMessage(playerid,-"suit active" ) ; 
    return 
1


CMD:survivaloff(playeridparams[]) 

    for(new 
i=0i<MAX_PLAYER_ATTACHED_OBJECTSi++) 
     { 
      if(
IsPlayerAttachedObjectSlotUsed(playeridi)) RemovePlayerAttachedObject(playeridi); 
    
SetPlayerHealth(playerid,100); 
     } 
    return 
1


// para testes 
CMD:ls(playeridparams[]) 

    if(!
IsPlayerAdmin(playerid)) return SendClientMessage(playerid,-1"minha pika disgraça"); 
    
SetPlayerPos(playerid358.8322,-2072.4692,10.6953); 
    
SendClientMessage(playerid, -1" voce foi teleportado para ls "); 
    return 
1


CMD:nrg(playeridparams[]) 

    new 
NRG[MAX_PLAYERS]; 
    if(
NRG[playerid] != 0DestroyVehicle(NRG[playerid]); 
    new 
Float:xFloat:yFloat:zGetPlayerPos(playeridx,y,z); 
    
NRG[playerid] = CreateVehicle(560x,y,z1.0, -1,-199); 
    
PutPlayerInVehicle(playeridNRG[playerid], 0); 
    return 
1


CMD:morrer(playeridparams[]) 

    
SetPlayerHealth(playerid0); 
    return 
1


CMD:surv(playeridparams[]) 

    
EditAttachedObject(playerid19904); 
    
SetPlayerAttachedObject(playerid0199042); 
    return 
1


 
// para testes 
//=======================================CMDS===================================================== 


//=================[STOCKS DO SERVIDOR]================ 
stock PegarNome(playerid

    new 
Name[MAX_PLAYER_NAME]; 
    
GetPlayerName(playeridNameMAX_PLAYER_NAME); 
    return 
Name


stock SalvarPlayer(playerid

    new 
pArquivos[50]; 
    
format(pArquivossizeof(pArquivos), CONTASSPegarNome(playerid)); 
    if(
DOF2_FileExists(pArquivos)) 
    { 
        
DOF2_SetInt(pArquivos"Level"GetPlayerScore(playerid)); 
        
DOF2_SetInt(pArquivos"Skin"GetPlayerSkin(playerid)); 
        
DOF2_SetInt(pArquivos"Spawn"pInfo[playerid][Spawn]); 

        
GetPlayerPos(playeridcoordSpawn[0], coordSpawn[1], coordSpawn[2]); 
        
DOF2_SetFloat(pArquivos"PozicaoX"coordSpawn[0]); 
        
DOF2_SetFloat(pArquivos"PozicaoY"coordSpawn[1]); 
        
DOF2_SetFloat(pArquivos"PozicaoZ"coordSpawn[2]); 
        
DOF2_SaveFile(); 
    } 
    return 
1


stock CarregarPlayer(playerid

    new 
pArquivos[50]; 
    
format(pArquivossizeof(pArquivos), CONTASSPegarNome(playerid)); 
    if(
DOF2_FileExists(pArquivos)) 
    { 
        
SetPlayerScore(playeridDOF2_GetInt(pArquivos"Level")); 
        
SetPlayerSkin(playeridDOF2_GetInt(pArquivos"Skin")); 
        
pInfo[playerid][Spawn] = DOF2_GetInt(pArquivos"Spawn"); 

        
coordSpawn[0] = DOF2_GetFloat(pArquivos"PozicaoX"); 
        
coordSpawn[1] = DOF2_GetFloat(pArquivos"PozicaoY"); 
        
coordSpawn[2] = DOF2_GetFloat(pArquivos"PozicaoZ"); 
    } 
    return 
1


forward KickPlayer(playerid); 
public 
KickPlayer(playerid

    
Kick(playerid); 
    return 
1


forward HorasJogadas(playerid); 
public 
HorasJogadas(playerid

    
SetPlayerScore(playeridGetPlayerScore(playerid) + 1); 
    
SendClientMessage(playerid, -1"Voce Acaba De Ganhar 1 De Score Por Estar Jogando A 5 Horas."); 
    return 
true


forward Dialog_Sexo(playerid); 
public 
Dialog_Sexo(playerid// Chama o Timer e activa-o 

    
ShowPlayerDialog(playeridD_SexoDIALOG_STYLE_MSGBOX,"> Escolha seu Sexo <","Escolha seu Sexo:","Masculino","Feminino"); 
    
// Mostra o Dialog depois de 4 segundos