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: Backwardsman97
Forum: Scripting Help 17/06/2013, 02:16 AM
Replies: 1
Views: 390
Posted By Backwardsman97
Re: Error Help

public OnGameModeInit()
{
AddPlayerClass( 0, 2195.4729, 1688.1770, 12.3672, 266.4879, 30, 10000, 28, 10000, 24, 10000 ); // Criminal Class 1
AddPlayerClass( 78, 2195.8218, 1685.8918, 12.3672,...
Forum: Scripting Help 18/03/2013, 12:47 AM
Replies: 600
Views: 75,172
Posted By Backwardsman97
Re: Script Request Thread #6

I have an old script similar to what you're talking about. Here's a video of it.

http://youtu.be/g6yKFMEUCqs?t=2m32s

Kind of outdated now I suppose, but it's the basis.
Forum: Scripting Help 17/02/2013, 04:17 PM
Replies: 2
Views: 531
Posted By Backwardsman97
Re: [HELP]NPC join problem

I think it writes to the console what errors the npc is experiencing when joining. Maybe not though. There could be a mis-spelling in the name of the script you assigned to it. Try re-recording it...
Forum: Scripting Help 17/02/2013, 04:12 PM
Replies: 2
Views: 404
Posted By Backwardsman97
Re: MoveObject keeps on going for all eternity

Not sure what you mean by keeps moving but I notice that you never change the gStatus to closed or opened.


if(GateInfo[gate][gStatus] == GATE_CLOSED)
{
...
Forum: Scripting Help 11/02/2013, 03:02 AM
Replies: 13
Views: 1,372
Posted By Backwardsman97
Re: Need help on Spawn

The problem is in the array size. Check the enum TSpawnLocation.
Forum: Scripting Help 11/02/2013, 02:16 AM
Replies: 3
Views: 1,007
Posted By Backwardsman97
Re: MessageToAdmins Spam

Well it is doing what it's supposed to be. Try creating a variable to store the time when they are detected and check it before looking into them further.
Forum: Scripting Help 11/02/2013, 01:50 AM
Replies: 6
Views: 1,772
Posted By Backwardsman97
Re: get camera angle?

Look at GetPlayerCameraFrontVector. http://wiki.sa-mp.com/wiki/GetPlayerCameraFrontVector They also provide examples. It may or may not be what you're looking for, depending on what you're trying...
Forum: Scripting Help 23/11/2012, 02:58 AM
Replies: 4,133
Views: 616,368
Posted By Backwardsman97
Re: Little coding questions - For general minor queries 5

That would be pretty legit if it wasn't attached and was all coded with just the object.
Forum: Scripting Help 23/11/2012, 02:55 AM
Replies: 4
Views: 1,709
Posted By Backwardsman97
Re: those these bags exsist :?

Probably. It looks like that was made with SA:MP but I know objects used in cutscenes like suitcases and whatnot caused crashes in previous versions. Perhaps fixed now? Try and find it.
Forum: Scripting Help 18/11/2012, 09:35 PM
Replies: 2
Views: 547
Posted By Backwardsman97
Re: need help for pirateship for == on player update ===

Maybe OnPlayerUpdate isn't the best place to that many area checks for all the players. A repeating timer of sorts may be more appropriate but that is entirely up to you. You just need to know if...
Forum: Scripting Help 18/11/2012, 09:31 PM
Replies: 4
Views: 792
Posted By Backwardsman97
Re: Time to location - Formula Required

Well it kind of depends on what the purpose of this is. Because the length of time it would take would depend on what vehicle you're using. Also the distance would be in GTA units which could be...
Forum: Scripting Help 17/11/2012, 05:43 PM
Replies: 3
Views: 757
Posted By Backwardsman97
Re: i want to hide ip

No. SA:MP deals with that long before you get access.
Forum: Scripting Help 03/11/2012, 03:11 PM
Replies: 9
Views: 1,054
Posted By Backwardsman97
Re: The player with the money

stock ReturnRichest()
{
new
tmp,
richest = -1,
amount;

for(new i; i<MAX_PLAYERS; i++)
{
tmp = GetPlayerMoney(i);
Forum: Scripting Help 22/09/2012, 12:19 AM
Replies: 1
Views: 485
Posted By Backwardsman97
Re: UF.inc Help

That is a very old and out-dated include. It's not super efficient and has a lot of extra stuff in it if you just want it for one function. You'd probably be better off making what you need from it...
Forum: Discussion 20/09/2012, 02:05 AM
Replies: 16
Views: 7,609
Posted By Backwardsman97
Forum: Scripting Help 19/09/2012, 02:09 AM
Replies: 2
Views: 737
Posted By Backwardsman97
Re: Command Issue

Try returning 1 inside at the end of the if statement.
Forum: Scripting Help 19/09/2012, 02:07 AM
Replies: 18
Views: 1,613
Posted By Backwardsman97
Re: Feeling confusion while making myself admin.

You probably aren't logged into rcon.
Forum: Scripting Help 18/09/2012, 03:45 AM
Replies: 3,248
Views: 683,280
Posted By Backwardsman97
Re: Script Request Thread #5

new
Float:x,
Float:y,
Float:z;

GetPlayerPos(other,x,y,z);

new Float:dist = GetPlayerDistanceFromPoint(playerid,x,y,z);
Forum: Scripting Help 18/09/2012, 03:39 AM
Replies: 6
Views: 9,575
Posted By Backwardsman97
Re: error 008: must be a constant expression; assumed zero

I'm pretty sure that's too many arrays for pawn. It only supports up to 2D arrays and having that many intertwined can cause issues.
Forum: Scripting Help 18/09/2012, 03:36 AM
Replies: 3
Views: 755
Posted By Backwardsman97
Re: Lag cmds && vlock

You would need to store a variable that stores what vehicle the player was driving which could lead to problems when you have multiple players locking and unlocking the same vehicle. It might be...
Forum: Scripting Help 20/08/2012, 05:48 AM
Replies: 3
Views: 859
Posted By Backwardsman97
Re: OnPlayerPickUpPickup

CreateDynamicPickup isn't a native function. You need to use whatever callback was made for that function. Probably what curdy said.
Forum: Scripting Help 30/01/2012, 03:26 PM
Replies: 6
Views: 1,518
Posted By Backwardsman97
Re: Problem with /checkweapons

Try this.


CMD:checkweapons(playerid, params[])
{
if(PlayerInfo[playerid][AdminLevel] >= 2)
{
if(params[0])
{
new
Forum: Scripting Help 19/12/2011, 04:44 PM
Replies: 4
Views: 1,033
Posted By Backwardsman97
Re: Question about particles

I don't think it gets destroyed. Best just to destroy it after to be safe. Or if you were curious, you could do a test.
Forum: Filterscripts 19/12/2011, 05:55 AM
Replies: 28
Views: 15,963
Posted By Backwardsman97
Forum: Scripting Help 18/12/2011, 05:48 PM
Replies: 13
Views: 8,293
Posted By Backwardsman97
Re: [HELP] Textdraw Problem

Looks pretty cool. As for the rest, I would create one timer that's repeating and use it as sort of a master loop. Then you can create variables to keep up with their status.
Showing results 1 to 25 of 500

 

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


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