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: Kane
Forum: Scripting Help 25/07/2019, 07:29 AM
Replies: 2
Views: 116
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: 29
[GameMode] Very Basic Script
Views: 2,159
Posted By Kane
Re: Very Basic Script

Not really helpful. I wouldn't recommend this to anyone, especially if they're just learning.
Forum: Scripting Help 08/07/2019, 06:35 AM
Replies: 5
Views: 136
Posted By Kane
Lightbulb Re: String manipulation - Splitting one string into two

public OnPlayerText(playerid, text[]) {

new szFormatText[156];

if(strlen(text) > 100) {

format(szFormatText, sizeof(szFormatText), "%s: %.100s...", GetPlayerName(playerid), text);...
Forum: Server Support 24/06/2019, 10:39 AM
Replies: 7
Views: 210
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: 173
Posted By Kane
Re: check if a string is a correct float string

Use sscanf.

Example:


new Float:giveUsAFloat;

if(sscanf(inputtext, "f", giveUsAFloat))
{
return 1;
Forum: Scripting Help 05/05/2019, 06:19 AM
Replies: 5
Views: 177
Posted By Kane
Re: Why isn't this MySQL code working?

What is the data type for "register_date"?

What is the expected result and what's the actual result?
Forum: General 20/04/2019, 03:43 AM
Replies: 43
Views: 7,702
Posted By Kane
Re: Discord Server

It's working for me.

Alternatively you can click "Add A Server" then "Join a Server" and enter the invite code which is: SHFH4cx
Forum: Screenshots and Videos 18/04/2019, 07:53 AM
Replies: 14
Views: 1,741
Posted By Kane
Re: ROBOT IN SAMP!?

60 objects? Really?

You could use 0.3.dl to your advantage here.
Forum: Scripting Help 16/04/2019, 03:47 AM
Replies: 5
Views: 207
Posted By Kane
Re: Team IDs keep getting changed from defines

Team IDs are 0-254 (0 is valid). 255 is NO_TEAM.
Forum: General 02/04/2019, 08:39 AM
Replies: 5
Views: 506
Posted By Kane
Re: Restlessness about my signature.

"use direct links instead." is in your own quote so no, probably not.
Forum: General 02/04/2019, 08:34 AM
Replies: 5
Views: 506
Posted By Kane
Re: Restlessness about my signature.

That link is really shady and you won't see a lot of people clicking it.
Forum: Screenshots and Videos 20/03/2019, 12:02 PM
Replies: 21
Views: 2,350
Posted By Kane
Re: Heist: The Bank Job in SA-MP

Why don't you attach more of the money bag objects as they pick it up?
Forum: Scripting Help 13/03/2019, 09:08 AM
Replies: 7
Views: 735
Posted By Kane
Re: Onplayerweaponshot bug

IIRC OnPlayerWeaponShot will not be called if you're shooting a dynamic object unless OnPlayerShootDynamicObject is called.
Forum: Scripting Help 02/03/2019, 09:23 AM
Replies: 4
Views: 165
Posted By Kane
Re: easyDialog issue

Dialog: does not have a dialogid argument.


Dialog:WeaponMenu(playerid, response, listitem, inputtext[])
Forum: Scripting Help 23/02/2019, 08:58 AM
Replies: 2
Views: 130
Posted By Kane
Re: GetObjectPos problem

The coordinates are right there for you to use. GetObjectPos is returning its actual position, not the one in editing. You don't need to do that.

Float:fX, Float:fY, Float:fZ, Float:fRotX,...
Forum: Scripting Help 21/02/2019, 10:08 PM
Replies: 5
Views: 191
Posted By Kane
Re: Wtf is wrong

Well does SaveGarage save the price to the database? Show the function.
Forum: Scripting Help 18/02/2019, 05:19 AM
Replies: 31
Views: 915
Posted By Kane
Re: How can i restrict players from entering a specific vehicle?

You don't need to use state change, OnPlayerEnterVehicle is fine.

Simply get their position and set it to current.


new Float:PosX,
Float:PosY;
Float:PosZ;

GetPlayerPos(playerid, PosX,...
Forum: Scripting Help 12/02/2019, 12:03 PM
Replies: 11
Views: 531
Posted By Kane
Re: Weapon tint hex looks like GOLD

Are you sure that's a player object?
Forum: Scripting Help 12/02/2019, 07:55 AM
Replies: 7
Views: 230
Posted By Kane
Re: MySQL Overlapping ID's

Why in the world are you running a query every time? Just iterate through DynamicDoors and et cetera.
Forum: Scripting Help 11/02/2019, 02:52 AM
Replies: 5
Views: 297
Posted By Kane
Re: Global Timer or Specific Timer

https://forum.sa-mp.com/showthread.php?t=643553
Forum: Scripting Help 11/02/2019, 02:49 AM
Replies: 5
Views: 151
Posted By Kane
Re: convert dcmd a zcmd

That's right, yes
Forum: Scripting Help 11/02/2019, 02:33 AM
Replies: 5
Views: 151
Posted By Kane
Re: convert dcmd a zcmd

Replace "dcmd_" with "CMD:"
Forum: Scripting Help 08/02/2019, 08:52 AM
Replies: 6
Views: 162
Posted By Kane
Re: Problem

Well it doesn't look like you're saving any statistics. What does OnUpdate do?

Also: Why?


while (x<500)
{
if (x!=(0xFFFF))
{
CallRemoteFunction("OnPlayerDisconnect", "i", x);
Forum: Scripting Help 05/02/2019, 09:52 AM
Replies: 6
Views: 199
Posted By Kane
Re: Help with command

CMD:fsafe(playerid, cmdtext[]){

new szCmdInfo[30], szActionInfo[30], amount;

if(sscanf(cmdtext, "s[30]S()[30]", szCmdInfo, szActionInfo))
{
SendClientMessage(playerid, -1, "USAGE:...
Forum: Scripting Help 28/01/2019, 07:47 AM
Replies: 2
Views: 152
Posted By Kane
Re: check if player stream to other player

https://wiki.sa-mp.com/wiki/IsPlayerStreamedIn
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 03:25 PM.


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