SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.03 seconds.
Search: Posts Made By: Kane
Forum: Scripting Help 24/06/2020, 09:52 AM
Replies: 3
Views: 104
Posted By Kane
Re: Indestructible Atms, how is this achieved?

Object model ID 19324
Has collision Yes
Breaks on hit No
Forum: Scripting Help 01/06/2020, 08:45 AM
Replies: 3
Views: 113
Posted By Kane
Re: Server kicks everyone out suddenly

Perhaps you could share your server_log with us
Forum: Scripting Help 25/05/2020, 10:21 PM
Replies: 8
Views: 177
Posted By Kane
Re: how to make command A to command B

No reason to do it like this.

CMD:a(playerid, cmdtext[]) {
return cmd_b(playerid, cmdtext);

CMD:b(playerid, cmdtext[]) {
if(playerid > 0) return 1;
return 0;
Forum: Scripting Help 25/05/2020, 08:32 PM
Replies: 8
Views: 177
Posted By Kane
Re: how to make command A to command B

Like an alt command? /a calls /b?
Forum: Scripting Help 12/05/2020, 07:23 AM
Replies: 4
Views: 139
Posted By Kane
Re: Contact List - Phone Textdraw

Well you could make it a 2 click process. The first click selects the contact and if you click it again it'll open it up. Create arrows that go down the list and selects them. When you get to the...
Forum: Scripting Help 22/04/2020, 08:07 AM
Replies: 4
Views: 169
Posted By Kane
Re: conversion from timestamp to date false?

Use this
Forum: Scripting Help 10/04/2020, 09:52 AM
Replies: 3
Views: 136
Posted By Kane
Forum: Scripting Help 10/04/2020, 09:48 AM
Replies: 14
Views: 236
Posted By Kane
Re: MySQL Stay within world boundaries

SetSpawnInfo(playerid, 0, 21, 81641.9692

Too big
Forum: Scripting Help 25/01/2020, 10:47 PM
Replies: 10
Views: 373
Posted By Kane
Re: 03-dl

Yes, it's possible.
Forum: General 29/12/2019, 01:07 PM
Replies: 6
Views: 1,117
Posted By Kane
Re: Looking for Suggestions for vehicle prices

It all depends on your economy.
Forum: Screenshots and Videos 18/12/2019, 04:07 AM
Replies: 4
Views: 670
Posted By Kane
Forum: Scripting Help 14/11/2019, 12:18 PM
Replies: 13
Views: 493
Posted By Kane
Re: Someone could help me?

Is there any code in OnPlayerUpdate or 60 s timers that set virtual world or interior?
Forum: Scripting Help 04/11/2019, 08:47 AM
Replies: 11
Views: 402
Posted By Kane
Re: show the top 1 person for money in the server

strcat(dest[], const source[], maxlength=sizeof dest)

You're showing String instead of string1. String also definitely does not need to be 2000.

Forum: Scripting Help 02/11/2019, 05:08 AM
Replies: 9
Views: 473
Posted By Kane
Re: Is it possible to use the both train track?

If I recall correctly it spawns it to the closest track you're on the side of. May be wrong though.
Forum: Scripting Help 02/11/2019, 05:02 AM
Replies: 3
Views: 316
Posted By Kane
Re: Offline list show

Here's an example of how you could do it by splitting it in to pages.

Let me know if you have any questions or need a part explained.


Forum: Scripting Help 27/10/2019, 09:55 AM
Replies: 4
Views: 250
Posted By Kane
Re: Make vehicle lights come on at night, off at day

Automatically or when a player toggles vehicle lights on?
Forum: Scripting Help 09/10/2019, 06:15 AM
Replies: 24
Views: 655
Posted By Kane
Re: Variable doesn't get called with GVar

Why are you using GVar for this?
Forum: Scripting Help 09/09/2019, 12:28 PM
Replies: 3
Views: 213
Posted By Kane
Re: Pawn.CMD

You're checking if they have access. If pAdmin != flags AND !IsPlayerAdmin, they get the error.

If you used logical OR (||), both would need to be true.
Forum: Scripting Help 09/09/2019, 11:50 AM
Replies: 3
Views: 213
Posted By Kane
Re: Pawn.CMD

Show your LoginCheck function.

You also need to know the difference between || and &&.

if (PlayerInfo[playerid][pAdmin] != flags || !IsPlayerAdmin(playerid))

Should be:

Forum: Scripting Help 28/08/2019, 01:18 PM
Replies: 23
Views: 873
Posted By Kane
Re: Server logs

_lSys_TimeStamp & _lSys_DayMStamp are both used inside of ServerLog, you don't need to personally touch it unless you wanna use them to format something else in the future
Forum: Scripting Help 28/08/2019, 12:02 AM
Replies: 23
Views: 873
Posted By Kane
Re: Server logs

You're overthinking it. This is fairly easy.

Example code:

_lSys_TimeStamp( )
new pDate[ 50 ];
new hour, minute, second,
day, month, year;
Forum: Scripting Help 25/07/2019, 07:29 AM
Replies: 2
Views: 213
Posted By Kane
Re: SetPlayerTeam and OnPlayerTakeDamage problem

Last time I checked setting their team does nothing for you with OnPlayerTakeDamage unless you're using EnableVehicleFriendlyFire()

For some reason, I've found that you need to set their team to...
Forum: Gamemode Scripts 24/07/2019, 09:18 PM
Replies: 31
[GameMode] Very Basic Script
Views: 5,781
Posted By Kane
Re: Very Basic Script

Not really helpful. I wouldn't recommend this to anyone, especially if they're just learning.
Forum: Server Support 24/06/2019, 10:39 AM
Replies: 7
Views: 350
Posted By Kane
Re: Players randomly getting kicked

Are you getting any client exceeded 'ackslimit' warnings?

It could be they're streaming too many objects.
Forum: Scripting Help 20/05/2019, 11:01 AM
Replies: 5
Views: 279
Posted By Kane
Re: check if a string is a correct float string

Use sscanf.


new Float:giveUsAFloat;

if(sscanf(inputtext, "f", giveUsAFloat))
return 1;
Showing results 1 to 25 of 500


All times are GMT. The time now is 09:57 AM.

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