SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 92
Search took 0.00 seconds.
Search: Posts Made By: Zmith
Forum: Scripting Help 05/08/2017, 08:37 PM
Replies: 8
Views: 358
Posted By Zmith
Forum: Scripting Help 12/06/2017, 12:40 PM
Replies: 8
Views: 183
Posted By Zmith
Re: Disabling damange once reaching a certain amount

I haven't tested it ingame, but it should work I guess.

public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid, bodypart)
{
new Float:HP;
GetPlayerHealth(playerid, HP);
...
Forum: Scripting Help 10/06/2017, 04:07 PM
Replies: 4
Views: 115
Posted By Zmith
Re: Help in Durby DeathMatch Vehicles [+rep]

You want the player to spawn back into the derby after dying? You could;


public OnPlayerSpawn(playerid)
{
if(VDMS[playerid] == 1)
{
CallRemoteFunction("OnPlayerCommandText","is",...
Forum: Scripting Help 10/06/2017, 03:47 PM
Replies: 4
Views: 115
Posted By Zmith
Re: Help in Durby DeathMatch Vehicles [+rep]

This should work, I guess.

forward DestoryVeh(playerid);
public DestoryVeh(playerid)
{
DestroyVehicle(GetPlayerVehicleID(playerid));
return 1;
}

public OnPlayerStateChange(...
Forum: Scripting Help 10/06/2017, 05:31 AM
Replies: 8
Views: 358
Posted By Zmith
Re: Player Data Failing to Save After Updating Includes

It saves OnPlayerDisconnect with my stock (see original post).

[1] Register // Working
[2] Spawn // Working (add pInfo)
[6] Disconnect // Working (save pInfo)
[4] Connect...
Forum: Scripting Help 09/06/2017, 01:22 PM
Replies: 8
Views: 248
Posted By Zmith
Re: anyone able to help me with a command

not tested

CMD:backup(playerid, params[])
{
if(IsACop(playerid) || PlayerInfo[playerid][pFaction] == 3 && PlayerInfo[playerid][pDivision] == 2 || PlayerInfo[playerid][pFaction] == 3 &&...
Forum: Scripting Help 09/06/2017, 10:38 AM
Replies: 3
Views: 168
Posted By Zmith
Re: Chat Animation

You have set the anim to loop, so it won't end. http://wiki.sa-mp.com/wiki/ApplyAnimation

If you want to stop an animnation without creating a command you can;
#define PRESSED(%0) \
(((newkeys...
Forum: Scripting Help 09/06/2017, 09:49 AM
Replies: 8
Views: 358
Posted By Zmith
Re: Player Data Failing to Save After Updating Includes

Thanks.

It worked fine as "Player's Data" previously (changed anyway ty). I tried an old copy of the gamemode to confirm my suspicion and it's not a gamemode error.

It's updating live when I'm...
Forum: Scripting Help 09/06/2017, 07:42 AM
Replies: 8
Views: 358
Posted By Zmith
Re: Player Data Failing to Save After Updating Includes

I appreciate the response but I'm not quite sure how this helps in my case. My "INI" were working perfectly fine prior to updating my includes and all the player's data was being saved. I had too...
Forum: Scripting Help 09/06/2017, 04:18 AM
Replies: 8
Views: 358
Posted By Zmith
Re: Player Data Failing to Save After Updating Includes

Update; the .ini file(s) update after changes ingame (admin, kills etc) but gmx or closing/restarting samp-server.exe and they all reset back to 0.
Forum: Scripting Help 09/06/2017, 01:56 AM
Replies: 5
Views: 169
Posted By Zmith
Re: Jump system help

I think he wants to disable/revamp damage taken from falling (anti-fall damage).

You can use; http://wiki.sa-mp.com/wiki/OnPlayerTakeDamage for that I guess.
Forum: Scripting Help 09/06/2017, 01:32 AM
Replies: 4
Views: 149
Posted By Zmith
Re: what anim?

It looks more like the riot_angry animnation to me;

ApplyPlayerAnimation(playerid,"RIOT","RIOT_ANGRY",4.0,0,0,0,0,0);

Image riot_angry; http://i.imgur.com/DLBqvl6.png
Forum: Scripting Help 08/06/2017, 11:14 PM
Replies: 8
Views: 358
Posted By Zmith
Player Data Failing to Save After Updating Includes

I was updating my pawno\include folder and deleted all the includes (there was a ton of includes I didn't believe were required) and started fresh with the updated includes.

(!)My gamemode finally...
Forum: Scripting Help 20/03/2017, 04:54 AM
Replies: 4
Views: 133
Posted By Zmith
Re: Team vehicles help

Alright, thank you. I'm still having trouble with the script though because there are more than one vehicle per team. I tried this, I had no errors, yet the script still doesn't work :/

You are...
Forum: Scripting Help 20/03/2017, 02:59 AM
Replies: 4
Views: 133
Posted By Zmith
Re: Team vehicles help

Update;

Okay, I found the error but I am still not sure how to fix it.

If I join "GANG_US" I cannot enter the last vehicle (I removed most vehicles so the above wasn't cluttered) added to...
Forum: Scripting Help 20/03/2017, 02:39 AM
Replies: 4
Views: 133
Posted By Zmith
Team vehicles help

http://forum.sa-mp.com/showthread.php?t=160810

I tried this, added it to my gamemode and compiled without any errors. However when I tried to test the script ingame, it simply didn't work. I tried...
Forum: Scripting Help 18/03/2017, 03:30 PM
Replies: 9
Views: 211
Posted By Zmith
Re: Help with command

It's fixed! Thanks for the help everyone rep+
Forum: Scripting Help 18/03/2017, 02:47 PM
Replies: 9
Views: 211
Posted By Zmith
Re: Help with command

error 017: undefined symbol "GetPlayerPoolSize"
Forum: Scripting Help 18/03/2017, 05:44 AM
Replies: 9
Views: 211
Posted By Zmith
Help with command

How can I fix this? look at screenshot for detail on the problem.

CMD:g2(playerid, params[])
{
new string[256], text[100];
if(sscanf(params, "s[100]", text)) return...
Forum: Scripting Help 17/03/2017, 03:49 AM
Replies: 0
Views: 88
Posted By Zmith
Cmd to place multiple objs in the same position

I'm creating a map and wanted to add czech hedgehogs, and a lot of them, but it's painful to create since one consists of 3 objects; which means positioning and angling 3 objects just to create one....
Forum: Scripting Help 29/05/2016, 02:10 AM
Replies: 1
Views: 179
Posted By Zmith
multi parameters?

I need 2 commands that will have multi parameters(?) but I am lost and don't know where to start :?


First command would be an animation command. Instead of having two different commands, I'd...
Forum: Everything and Nothing 12/11/2015, 08:47 AM
Replies: 60
Views: 3,208
Posted By Zmith
Forum: Scripting Help 19/05/2015, 11:15 AM
Replies: 1
Views: 229
Posted By Zmith
2 cmds with reason/text = ""

CCMD:ask(playerid, params[])
{
new msg[100]; new string[200];
if(sscanf(params, "us[100]", msg))return SendClientMessage(playerid, COLOR_GREY, "{6a696a}[cmd]: /ask {9c9a9c}<questions>");
...
Forum: Scripting Help 19/05/2015, 05:09 AM
Replies: 15
Views: 870
Posted By Zmith
Re: Admin Commands [Adminlevel]

Answered. Fixed.

thx Threshold.
Forum: Scripting Help 19/05/2015, 04:10 AM
Replies: 15
Views: 870
Posted By Zmith
Re: Admin Commands [Adminlevel]

Nevermind, it was a mix up between gamemodes. I made a extra copy to fix the login bug and forgot I was loading it on rcon.

it works, thanks Threshold.


xx
Showing results 1 to 25 of 92

 

All times are GMT. The time now is 10:50 PM.


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