SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.01 seconds.
Search: Posts Made By: (SF)Noobanatior
Forum: Scripting Help 28/04/2015, 10:28 AM
Replies: 8
Views: 500
Posted By (SF)Noobanatior
Re: Help "AttachObjectToVehicle"

deleted line 33 return 1; also that should do it,would of been exiting there when the player has no object ids yet

#include <a_samp>
new nrg[MAX_PLAYERS][7];
public OnFilterScriptInit() return...
Forum: Scripting Help 28/04/2015, 10:05 AM
Replies: 8
Views: 500
Posted By (SF)Noobanatior
Re: Help "AttachObjectToVehicle"

try this

#include <a_samp>
new nrg[MAX_PLAYERS][7];
public OnFilterScriptInit() return print("[FS]NRG Mod Loader!");
public OnFilterScriptExit() {
for(new i=0; i < MAX_PLAYERS+1; i++){
...
Forum: Scripting Help 28/04/2015, 09:33 AM
Replies: 4
Views: 953
Posted By (SF)Noobanatior
Re: Actor's facing angle problems

cant see it what does PED_Stop(0); do?
Forum: Scripting Help 28/04/2015, 09:12 AM
Replies: 6
Views: 689
Posted By (SF)Noobanatior
Re: How to set a variable to string

new string[24] = "up to 24 letters";

like this?

actually do you mean like this

new label[24];
copy(label,params,sizeof(label));
Forum: Scripting Help 28/04/2015, 09:07 AM
Replies: 4
Views: 953
Posted By (SF)Noobanatior
Re: Actor's facing angle problems

can you post PED_SetFacingPlayer(0, playerid) not setfacingpoint please
Forum: Scripting Help 28/04/2015, 08:56 AM
Replies: 4
Views: 518
Posted By (SF)Noobanatior
Re: Who Know SATDM script

i used to use it
Forum: Scripting Help 28/04/2015, 08:54 AM
Replies: 8
Views: 500
Posted By (SF)Noobanatior
Re: Help "AttachObjectToVehicle"

if 250 is greater then the vehicle health?

if(vh < 250) return
Forum: Scripting Help 28/04/2015, 08:51 AM
Replies: 1
Views: 770
Posted By (SF)Noobanatior
Re: [MAX_OBJECTS] ?

yeah there is its 1000 i belive or you can just define you own too

@define MAX_SOMETHINGELSE 1234

then you can use your custom one

new array[MAX_SOMETHINGELSE];
Forum: Scripting Help 28/04/2015, 08:41 AM
Replies: 7
Views: 572
Posted By (SF)Noobanatior
Re: Anti mingun hack

this is my old one

new weapon2,ammo2;
new minimsg[MAX_STRING];
new cheater[MAX_PLAYER_NAME];
for (new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && playerisnotadmin) // <--...
Forum: Scripting Help 28/04/2015, 08:32 AM
Replies: 3
Views: 487
Posted By (SF)Noobanatior
Re: Tag Mismatch

you dont have to write out every if statment to get the same result you could do something like


new w[MAX_PLAYERS][47]; //ARRAY 47 SLOTS FOR EACH PLAYERS (put where your w%d var's are)

new...
Forum: Scripting Help 08/10/2014, 07:19 AM
Replies: 5
Views: 564
Posted By (SF)Noobanatior
Re: Diffrent class for diffrent team is not working help +Rep

when the player selects the class, how do you set the var, would be something like;

Team[playerid]=TEAM_AFGHANISTAN; // or
Team[playerid]=TEAM_ASSULT;

so you can check it with your "if"...
Forum: Scripting Help 08/10/2014, 07:01 AM
Replies: 5
Views: 564
Posted By (SF)Noobanatior
Re: Diffrent class for diffrent team is not working help +Rep

where do you change the Team[playerid] for the player?
Forum: Scripting Help 08/10/2014, 06:57 AM
Replies: 6
Views: 525
Posted By (SF)Noobanatior
Re: I have some help

you havent defined gPlayerClass did you just all the code in from somewhere?

show from line 85
Forum: Scripting Help 08/10/2014, 06:27 AM
Replies: 14
Views: 1,241
Posted By (SF)Noobanatior
Re: Errors

post lines 14945-14952
Forum: Scripting Help 08/10/2014, 06:20 AM
Replies: 11
Views: 720
Posted By (SF)Noobanatior
Re: [Help]Please

can use getdate and save the year month day is that what you mean

have a look at this

http://www.compuphase.com/pawn/Time_Functions.pdf
Forum: Scripting Help 08/10/2014, 06:12 AM
Replies: 22
Views: 2,150
Posted By (SF)Noobanatior
Re: error 035: argument type mismatch

take the space out of "player id" and make it "playerid"
Forum: Scripting Help 08/10/2014, 06:07 AM
Replies: 11
Views: 720
Posted By (SF)Noobanatior
Re: [Help]Please

not really sorry do you also want to save that date that they register?
Forum: Scripting Help 08/10/2014, 05:46 AM
Replies: 4
Views: 604
Posted By (SF)Noobanatior
Re: [File]: Reading all lines?

if you look in dini.inc there is lots of examples of how to read a file or use file function
im a but rusty with it but i gutted dini_get to make this quickly
should print eack line of the file...
Forum: Scripting Help 08/10/2014, 05:24 AM
Replies: 11
Views: 720
Posted By (SF)Noobanatior
Re: [Help]Please

I did this a while back for a old game mode
i got the tickcount when they joined and disconected then
Subtracted the connect tickcount from the disconnect tickcount and saved that number
then...
Forum: Scripting Help 07/10/2014, 11:47 AM
Replies: 22
Views: 2,244
Posted By (SF)Noobanatior
Re: GetAttachedObjectPos

should be attached to the same player that had it but displayed for the other players on the server
Forum: Scripting Help 07/10/2014, 11:41 AM
Replies: 31
Views: 2,061
Posted By (SF)Noobanatior
Re: Dialog STRING help!!! I give reputation for who gets me out of this problem

CMD:factions(playerid, params[])
{
new string[400];
format(string, sizeof(string),"Los Santos Police Department [%d/10]\nFederal Bureau Of Investigation[%d/10]\nNational Guard...
Forum: Scripting Help 07/10/2014, 11:35 AM
Replies: 22
Views: 2,244
Posted By (SF)Noobanatior
Re: GetAttachedObjectPos

this should add it to everyone else on the server

Prop[playerid] = CreatePlayerObject(playerid, PropPositions[ii][ModelID], PropPositions[ii][Offset][0], PropPositions[ii][Offset][1],...
Forum: Scripting Help 07/10/2014, 11:21 AM
Replies: 31
Views: 2,061
Posted By (SF)Noobanatior
Re: Dialog STRING help!!! I give reputation for who gets me out of this problem

add print(string); and see what it says in the console
Forum: Scripting Help 07/10/2014, 11:11 AM
Replies: 31
Views: 2,061
Posted By (SF)Noobanatior
Forum: Scripting Help 07/10/2014, 11:08 AM
Replies: 22
Views: 2,244
Posted By (SF)Noobanatior
Re: GetAttachedObjectPos

more like this then?

new Float:ox,Float:oy,Float:oz,Float:orx,Float:ory,Float:orz;
GetObjectPos(firstobjectid,ox,oy,oz);
GetObjectRot(firstobjectid,orx,ory,orz);
secondobjectid =...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 04:24 AM.


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