free

News

collapse

User Info

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Recent Posts

Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by FrankCivello
[Yesterday at 12:50:43 am]


NOTICE OF PARKING ENFORCEMENT CHANGES by Huntsman
[June 19, 2025, 05:22:50 pm]


Re: Stopping by by Sinister
[June 08, 2025, 01:58:04 pm]


Re: Stopping by by Ehks
[June 04, 2025, 12:25:17 am]


Re: Rest in peace by Stefanrsb
[June 02, 2025, 03:38:02 am]


Re: [SA:MP]House of Sforza | The Elite Power | Estd. 2006 | LS - LV by Stefanrsb
[June 02, 2025, 03:09:22 am]


Re: The Soprano Family | Royal Loyalty by Stefanrsb
[June 02, 2025, 03:00:31 am]


Re: The Gvardia Family || San Fierro's Main Power || Best criminal group of 09/10/11 by Stefanrsb
[June 02, 2025, 02:47:01 am]


Re: BALLAS | In memory of INFERNO 9 and NBA by Stefanrsb
[June 02, 2025, 02:31:29 am]


Re: Count to 1,000,000. by Stefanrsb
[June 02, 2025, 02:15:04 am]


Re: Stopping by by Traser
[June 01, 2025, 10:23:13 pm]


Re: Stopping by by Old Catzu
[May 18, 2025, 07:27:06 pm]

* Who's Online

  • Dot Guests: 320
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Birthday Calender

July 2025
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 [18] 19
20 21 22 23 24 25 26
27 28 29 30 31

Need Scripting help

Fatboy_Rob · 3915

0 Members and 1 Guest are viewing this topic.

Offline Tice

  • Veteran
  • ***
    • Posts: 744
  • lɐuıƃıɹo ɯ,ı ʇsɐǝl ʇɐ
  • With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #15 on: November 23, 2007, 10:18:37 pm
Andre gave a better description, last post on page 1.

Without defining different teams, anyone (even at the same spawnpoint) can kill eachother and get points (I'm guessing it's a DM gamemode?), so you need to define the teams, like this:

Under #include <a_samp>

Code: [Select]
#define TEAM_teamname 0
#define TEAM_teamname 1
#define TEAM_teamname 2

teamname, for example: TEAM_RED or TEAM_BLUE

When you define teams, you can do all kinds of cool things, like "if(gTeam[playerid] == TEAM_teamname)", "SetPlayerTeamFromClass, SetPlayerToTeamColor, anti teamkilling, etc.



Offline Andre9977

  • Veteran
  • ***
    • Posts: 2673
    With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #16 on: November 23, 2007, 10:22:16 pm
Yeah, I was just lucky to roll on the post first, but for example mine helps, Yours helps to get the basics, exactly.

I've also fixed few things, what I had flying in my head...
If You feel like needing help, ask :)

// The "SetCameraPosition"'s, I think Kapil once showed his skills at sa-mp.com forums & Found a good way to get the coordinates.
You might try with /csel (Camera Select), while using [FS] Debug Mode by Simon

I am biatch!


Offline Dave

  • Hero
  • ****
    • Posts: 3106
    With us since: 21/08/2006
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #17 on: November 23, 2007, 10:30:16 pm
http://argonathscriptingsupport.smfforfree4.com

is that allowed?? or is it against the rules?  :neutral: , i thought it would come in pretty handy for some people here. If it is allowed, could all knowlegeable scripters please contact me in forums by PM.....


Dave



Offline Fatboy_RobTopic starter

  • Veteran
  • ***
    • Posts: 3992
    With us since: 02/06/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #18 on: November 24, 2007, 11:07:44 am
ok, Well, im scripting all day, and im in my server to test stuff, and i go out for about 4 hours, i get back, and i cant acess my server through the internet...
i cant even see it on my favorites list, all it says is Retriving info.....

i can play it on LAN, but, idk, this is pissing me off, realllly bad...

any suggestions?

Ahoy in the name of the Most High, His Imperial Majesty Haile Selassie I the first! Jah Rastafari!
 


Offline Andre9977

  • Veteran
  • ***
    • Posts: 2673
    With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #19 on: November 24, 2007, 11:57:01 am
Probably Your internet cut off while You wasn't looking.

1) Try remaking the internet settings You had before this happent
2) Close server console & re run it in case You haven't yet. May be caused if You haven't shut it after there was a connection lost

I am biatch!


[GSF]Niall

  • Guest
Reply #20 on: November 24, 2007, 12:27:51 pm
http://argonathscriptingsupport.smfforfree4.com

is that allowed?? or is it against the rules?  :neutral: , i thought it would come in pretty handy for some people here. If it is allowed, could all knowlegeable scripters please contact me in forums by PM.....


Dave

nice idea ;) im starting to learn how to script it might come in handy.



Offline Tice

  • Veteran
  • ***
    • Posts: 744
  • lɐuıƃıɹo ɯ,ı ʇsɐǝl ʇɐ
  • With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #21 on: November 24, 2007, 01:04:29 pm
ok, Well, im scripting all day, and im in my server to test stuff, and i go out for about 4 hours, i get back, and i cant acess my server through the internet...
i cant even see it on my favorites list, all it says is Retriving info.....

i can play it on LAN, but, idk, this is pissing me off, realllly bad...

any suggestions?

Try adding 127.0.0.1 in your favorites, or adding 'announce 1' in server.cfg



Offline Fatboy_RobTopic starter

  • Veteran
  • ***
    • Posts: 3992
    With us since: 02/06/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #22 on: November 24, 2007, 09:09:03 pm
Yes, that work's, cause its my LAN, but, even if i have it on 127.0.0.1 with announce 1 on, will others be able to connect?
Posted on: November 24, 2007, 09:07:15 PM
Yes, that work's, cause its my LAN, but, even if i have it on 127.0.0.1 with announce 1 on, will others be able to connect?

Ahoy in the name of the Most High, His Imperial Majesty Haile Selassie I the first! Jah Rastafari!
 


Offline Tice

  • Veteran
  • ***
    • Posts: 744
  • lɐuıƃıɹo ɯ,ı ʇsɐǝl ʇɐ
  • With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #23 on: November 24, 2007, 11:41:24 pm
Yes, that work's, cause its my LAN, but, even if i have it on 127.0.0.1 with announce 1 on, will others be able to connect?

Yes, but they will have to connect through your external IP.



Offline Fatboy_RobTopic starter

  • Veteran
  • ***
    • Posts: 3992
    With us since: 02/06/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #24 on: November 25, 2007, 03:09:26 am
that dosent work(i guess)

Anyways. the problem was, that when my internet shut down for a quick second, it change my IP from XXX.XXX.XXX.100 to XXX.XXX.XXX.103

So, all i did was close the old port, and reopen the new one

So, thanks you guys

Oh Also, Andre, idk if you will hate me for this, but i modified your weapon FS, i added guns & cool stuff(i still give you full credits though)

Ahoy in the name of the Most High, His Imperial Majesty Haile Selassie I the first! Jah Rastafari!
 


Offline Andre9977

  • Veteran
  • ***
    • Posts: 2673
    With us since: 09/04/2007
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #25 on: November 25, 2007, 09:26:39 am
I hate You

Good job :)

I am biatch!


Offline Watti

  • King of HMAS Cerberus
  • Veteran
  • ***
    • Posts: 3315
    With us since: 13/09/2006
    YearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYearsYears
Reply #26 on: November 25, 2007, 12:08:57 pm
ok mine doesnt connect :)... Help :P ive forwarded ports...

If We Make Peace of Resolution Impossible, War of Revolution Will be Inevitable


 


SimplePortal 2.3.7 © 2008-2025, SimplePortal