SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: Lynn
Forum: Scripting Help 03/07/2017, 07:49 PM
Replies: 2
Views: 160
Posted By Lynn
Re: LAdmin - /slap issue

pName(playerid) Is casting the name of issuer, not the selected target.
So instead you need to get the name of the target.

format(string, sizeof(string), "You have slapped %s [%s] ",...
Forum: Scripting Help 03/07/2017, 07:47 PM
Replies: 3
Views: 383
Posted By Lynn
Re: Get player's Position, More like direction

You can't tell if someone is standing on your right or left side with accuracy.
You can detect if their next to you, but not what side of you they are on.
For instance, if you're standing and...
Forum: Scripting Help 24/06/2017, 09:37 PM
Replies: 2
Views: 271
Posted By Lynn
Re: Can i make spawn points in interior locations?

http://weedarr.wikidot.com/interior
Pretty master idea.
Forum: Scripting Help 24/06/2017, 04:07 PM
Replies: 1
Views: 227
Posted By Lynn
Re: What is purpose of db_debug_openresults

If I'm not mistaken it's to debug current result memory from a db_query.
Forum: Scripting Help 25/09/2016, 02:30 AM
Replies: 5
Views: 299
Posted By Lynn
Re: Timer stops working.

If it spams the message then you're not returning a value.
You need return true; after SendClientMessage.
Forum: Scripting Help 23/09/2016, 07:19 PM
Replies: 3
Views: 211
Posted By Lynn
Re: OnPlayerGiveDamage

It's called when you give damage to anther player.

OnPlayerTakeDamage

Is called when you take damage.
Forum: Scripting Help 23/09/2016, 07:16 PM
Replies: 6
Views: 191
Posted By Lynn
Re: Label

Try this.
You were calling an else statement for

if(sscanf(params, "s", value))


Instead of

if(playerData[playerid][HasCustomLable] == false)
Forum: Scripting Help 21/09/2016, 06:24 PM
Replies: 12
Views: 469
Posted By Lynn
Re: This keeps resetting armour to 100.

That doesn't mean their armor is equal or more than what you're taking away though.
If armour is 1, and you take away 20 you're still setting the armor to a negative number.
Armor >=...
Forum: Scripting Help 21/09/2016, 05:23 PM
Replies: 12
Views: 469
Posted By Lynn
Re: This keeps resetting armour to 100.

Maybe try something like this?


new Float: armour, Float:Health, Float: newarm[6], Float: newam2;
GetPlayerArmour(playerid, armour);
GetPlayerHealth(playerid, Health);
newarm[0] = 15;...
Forum: Scripting Help 21/09/2016, 05:11 PM
Replies: 12
Views: 469
Posted By Lynn
Re: This keeps resetting armour to 100.

As above, switch may work too.

EDIT: Didn't see your above post saying you tried.

switch(armour)
{
case 1..100:
{
switch(weaponid)
{
Forum: Scripting Help 21/09/2016, 05:06 PM
Replies: 2
Views: 192
Posted By Lynn
Re: Help!!

Double check the ID of the textdraw you're hiding.
Odds are it's the wrong one, or it's a global textdraw and not a player.
Forum: Scripting Help 21/09/2016, 05:03 PM
Replies: 12
Views: 469
Posted By Lynn
Re: This keeps resetting armour to 100.

Try adding an else statement.

else {
SetPlayerArmour(playerid, 0);
}
Forum: Scripting Help 21/09/2016, 03:44 PM
Replies: 5
Views: 239
Posted By Lynn
Re: zombie server- help

Main post updated.
Forum: Scripting Help 21/09/2016, 03:42 PM
Replies: 2
Views: 175
Posted By Lynn
Re: car enter problem

Assuming the car is being despawned after you log out(After locking it)
You probably aren't saving and loading the vehicle information, such as if it's locked or not.
You need to set the vehicle...
Forum: Scripting Help 21/09/2016, 03:40 PM
Replies: 5
Views: 239
Posted By Lynn
Re: zombie server- help

Sure, we can make the command.
But you never said what it'll do...


#include <zcmd>// Top of script, ZCMD needed if you don't already have it.

static VIPLevel[MAX_PLAYERS]; // Global...
Forum: Scripting Help 21/09/2016, 03:28 PM
Replies: 4
Views: 212
Posted By Lynn
Re: How can i make this

I wouldn't recommend broadcasting the IP of connecting players to the public.
That's just asking for trouble. Instead broadcast their player ID or just player name.
And As the for the above...
Forum: Everything and Nothing 09/09/2016, 05:06 PM
Replies: 4
Views: 573
Posted By Lynn
Re: [Help] C# With MySQL(Blowfish Hashing)

I'm aware of the SQL Injection security issue when connecting directly to the database within the application.
This is for a personal project I'm working on, the only user with the application is...
Forum: Scripting Help 23/08/2016, 08:25 PM
Replies: 1
Views: 153
Posted By Lynn
Re: junk bruster

JunkBuster is a very old anti-cheat.
I strongly discourage the usage of it.
Instead, try to develop your own, or find one that isn't from 2012 Era.
Forum: Scripting Help 23/08/2016, 08:23 PM
Replies: 2
Views: 241
Posted By Lynn
Re: 100 % CPU

Easy solution:
Remove it.
Why does it matter if they're logged to the console or not?
You can just log all the connecting players to a .txt file instead.
Forum: Everything and Nothing 15/08/2016, 12:21 AM
Replies: 4
Views: 573
Posted By Lynn
Re: [Help] C# With MySQL(Blowfish Hashing)

I'm using the built in PHP Function PASSWORD_DEFAULT to Hash it.
So the salt isn't the same every time, nor is it stored into the SQL Database.
Forum: Everything and Nothing 14/08/2016, 10:43 PM
Replies: 4
Views: 573
Posted By Lynn
[Help] C# With MySQL(Blowfish Hashing)

I'm trying to create a a program that will login using Username and Password from my SQL Database.
The accounts are created using the website, however I want to login using my 3rd party app.
This...
Forum: Scripting Help 17/07/2016, 04:52 AM
Replies: 20
Views: 811
Posted By Lynn
Re: How to make this?

You can't see 3DTextLabels attached to yourself.
So you will need anther player to test it with, in-order to know if it's working properly or not.
Otherwise it'll always appear to not be working.
Forum: Scripting Help 12/07/2016, 01:43 AM
Replies: 1
Views: 252
Posted By Lynn
Re: Link this cmd together?

CMD:locker(playerid, params[])
{
if(PlayerInfo[playerid][pFaction] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(IsPlayerInRangeOfPoint(playerid,3,1188.5157470703,-1350.9741210938,...
Forum: Scripting Help 11/07/2016, 01:29 AM
Replies: 2
Views: 204
Posted By Lynn
Re: error 014: invalid statement; not in switch

Your case was as the error said, outside of the switch.


public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case LoginDialog:
...
Forum: Scripting Help 10/07/2016, 06:12 PM
Replies: 2
Views: 202
Posted By Lynn
Re: MySQL Help - Syntax Error

Wow, rookie mistake.
You're the real MVP
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 08:08 AM.


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