SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 25
Search took 0.00 seconds.
Search: Posts Made By: Hrb
Forum: Scripting Help 27/02/2018, 02:10 PM
Replies: 7
Views: 1,909
Posted By Hrb
Re: Problem with TogglePlayerControllable

Zkus toto:

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
if(issuerid != INVALID_PLAYER_ID)
{
if(weaponid == 0 && AFK[playerid])
...
Forum: Scripting Help 27/02/2018, 11:42 AM
Replies: 7
Views: 1,909
Posted By Hrb
Re: Problem with TogglePlayerControllable

Ahoj, použij public "OnPlayerTakeDamage" vice zde: http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage
Jednoduše zkontroluj jestli je afk a pak mu nastav zpět životy, které má mít.

Hi, try using public...
Forum: Scripting Help 12/02/2018, 12:01 PM
Replies: 4
Views: 339
Posted By Hrb
Re: Is there a way to know how many 3D Text Label's my server haves?

small mistake, i forgot about this condition ;)
Forum: Scripting Help 12/02/2018, 11:35 AM
Replies: 4
Views: 339
Posted By Hrb
Re: Is there a way to know how many 3D Text Label's my server haves?

There is a better way:

new TextLabels = 0; // on the top of your script

// somewhere in your script
Text3D:Create3DTextLabelEx(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance,...
Forum: Server Support 08/02/2018, 02:26 PM
Replies: 2
Views: 816
Posted By Hrb
Re: Formatted message to all

http://forum.sa-mp.com/showthread.php?t=257849
http://forum.sa-mp.com/showthread.php?t=543257
http://forum.sa-mp.com/showthread.php?t=146093
Forum: Scripting Help 08/02/2018, 10:41 AM
Replies: 2
Views: 266
Posted By Hrb
Re: Auto jail issue, when reconnects [Simple]

Try this:

new bool:IsLoggedIn[MAX_PLAYERS];

forward AutoUnjail();

//OnGameModeInit
SetTimer("AutoUnjail", 1020, 1);

//OnPlayerDissconnect
Forum: Scripting Help 06/02/2018, 10:17 AM
Replies: 2
Views: 239
Posted By Hrb
Re: Help with script

You have variable only for Float numbers: "new Float:Small Houses" so you can't use interior ID in that variable, because it is integer.
Try something like this:

enum SmallHouses_Info
{
...
Forum: Scripting Help 06/02/2018, 12:09 AM
Replies: 1
Views: 491
Posted By Hrb
Re: What is this anim?

Try this:

"MEDIC" - "CPR"
"PED" - "KO_shot_face"
"PED" - "KO_shot_front"
"PED" - "KO_shot_stom"
"PED" - "KO_skid_back"
"PED" - "KO_skid_front"
"PED" - "KO_spin_L"
"PED" - "KO_spin_R"
Forum: Scripting Help 02/02/2018, 09:07 PM
Replies: 3
Views: 277
Posted By Hrb
Re: duel system location

new Float:Dueler_Pos[][] = {
{12.0, 12.0, 12.0}, // Line ID 0 - Pos X , Pos Y, Pos Z
{11.0, 11.0, 11.0}, // Line ID 1 - Pos X , Pos Y, Pos Z
{10.0, 10.0, 10.0} // Line ID 2 - Pos X ,...
Forum: Scripting Help 29/01/2018, 07:28 PM
Replies: 3
Views: 446
Posted By Hrb
Re: How to check if trailer is attached?

Very simple: http://wiki.sa-mp.com/wiki/IsTrailerAttachedToVehicle
Forum: Scripting Help 29/01/2018, 12:30 PM
Replies: 3
Views: 183
Posted By Hrb
Re: Textdraw not showing in game help !

delete line with: TextDrawShowForAll(helpingtext);

Add this to public OnPlayerConnect or OnPlayerSpawn:

TextDrawShowForPlayer(playerid, helpingtext);

EDIT: Flamehaze7 is right, check that...
Forum: Scripting Help 28/01/2018, 03:35 PM
Replies: 5
Views: 625
Posted By Hrb
Re: [+REP] Array in Enum

You are close, but u miss one "]"

this is correct:

if(oInfo[playerid][i][matindex][0] == 0)
Forum: Scripting Help 27/01/2018, 11:49 PM
Replies: 4
Views: 310
Posted By Hrb
Re: a problem with my rank system

Try to do it like this if u want to repair your code:

EDIT: otherwise, do what Sew_Sumi writes, he is right.


if(strcmp(AccData[playerid][pRank], "No Rank", true))
{
if(0 <=...
Forum: Scripting Help 27/01/2018, 09:56 PM
Replies: 1
Views: 176
Posted By Hrb
Re: INCONSTANT

These conditions that you show to us are right. Problem is somewhere else (somewhere on the lines under these conditions.)
Read this:

http://forum.sa-mp.com/showpost.php?p=1295186&postcount=3
Forum: Scripting Help 27/01/2018, 11:41 AM
Replies: 1
Views: 244
Posted By Hrb
Re: textdraw help

Try this:

if(GetPlayerScore(playerid) > 12000)
{
if(GetPlayerTeam(playerid) == 2 || GetPlayerTeam(playerid) == 9)
{
TextDrawShowForPlayer(playerid, KingPin);
} else {
...
Forum: Scripting Help 25/01/2018, 06:02 PM
Replies: 4
Views: 561
Posted By Hrb
Re: Detect player throwing grenades

You can try to check the weapon ID after the KEY_FIRE is released. (It should work.)

Something like this:


#define RELEASED(%0) \
(((newkeys & (%0)) != (%0)) && ((oldkeys & (%0)) == (%0)))...
Forum: Scripting Help 25/01/2018, 05:49 PM
Replies: 20
Views: 776
Posted By Hrb
Re: Checking if player is already admin or not

if I understand what you want, then this condition should work.
Add this condition under the line with if(sscanf...
Forum: Scripting Help 25/01/2018, 02:48 PM
Replies: 4
Views: 488
Posted By Hrb
Re: Wanted Level

Somewhere in your GM, you don't set correctly your variable for wanted level (Player[playerid][pWantedLevel]), because i simple found your 5s timer and i saw, that you are setting wanted level to 0...
Forum: Scripting Help 13/01/2018, 01:44 AM
Replies: 5
Views: 861
Posted By Hrb
Re: Binco interior problem

For 0.3.8 it would be awesome.

edit: In 0.3.8 is possible to "cut out" that invisible wall, am I right?
Forum: Scripting Help 13/01/2018, 01:09 AM
Replies: 5
Views: 861
Posted By Hrb
Re: Binco interior problem

I just need some tips, how to remove that "invisible wall" so i can get in.
Forum: Scripting Help 13/01/2018, 12:06 AM
Replies: 5
Views: 861
Posted By Hrb
Binco interior problem

Hello, i am wondering about creating clothes system from single player, but i have problem, that u can´t walk into small Binco´s dress room (picture down). In sa-mp, this room is without door. I...
Forum: Scripting Help 03/09/2016, 03:08 PM
Replies: 3
Views: 540
Posted By Hrb
Re: Object ID ?

Thank you very much Threshold :))
Forum: Scripting Help 03/09/2016, 11:38 AM
Replies: 3
Views: 540
Posted By Hrb
Object ID ?

Hi, i wanna ask, if anyone knows object ID? (object on the picture)
Thank you for your time :))

http://jyxo.info/uploads/14/144bb4ab23c5911af7b5ebefc0ef3d724ce7454f.png
Forum: Scripting Help 09/01/2015, 03:26 PM
Replies: 5
Views: 610
Posted By Hrb
Re: Error in my first gamemode.

You have to add word "public" before "OnGameModeInit()" so: public OnGameModeInit()
and try to update your include <a_samp> (download new one, from 0.3z)

//Edit: dont remove "main()" these errors...
Forum: Scripting Help 03/01/2015, 12:30 PM
Replies: 2
Views: 1,051
Posted By Hrb
Angry Help - CreateVehicle ID

Hi,

i have code like this in my GM:

new Car[MAX_PLAYERS_EX];

stock BuyCar(playerid,CarID ....)
{
...
Car[playerid] =...
Showing results 1 to 25 of 25

 

All times are GMT. The time now is 02:26 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.