Jump to content

[REL] P-Spawn - A player spawn script


Recommended Posts

Posted

P-Spawn is a small script that does the following things:

+ Spawns players when they join

+ Give them weapon and ammo when they join

+ Give them money when they join

+ Respawns players when they die

+ Give respawned players weapon and ammo

+ Take money from the player when they die

+ Give money to the player when they kill someone

A lot of things can be changed in variables with a lot of comments in the script.lua file. For example:

+ Change the amounts of money players get and lose

+ Change the spawn coördinates

+ Change the player skin

+ Change the weapons players get

This script is supposed to stay small like this, but i might be willing to add some features to it. Please place a reaction if you want something added. Also, i did not test this script with more then 1 player, so if there are any bugs, please tell me and i will (try to) fix them.

https://community.multitheftauto.com/index.php?p= ... ils&id=756

signaturepp.png

Total freedom, no exceptions!

Posted
can you add a function in were you can create teams so i can use this on mta first war server. if you do this i will make you admin.

giving admin to people u dont know is the most stupid thing u can do, i dont understand why all offers that :S. why just dont try to script yourself somthing? :roll:

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

But with strict rules, what's the point of offering admin as a "payment" (which is bull) then? That's like saying, "If you do this, I'll give you this car, but you can only take it to the store, and you have to push it,"

Do NOT PM ME for help unless invited. - New MTA Script Editor

Scripting help "etiquette": understandable language, relevant code (ALL code if unsure), [Lua] tags, error messages with line numbers. Super simple stuff.

Posted

lol. im not seting any rules for them. just incase they try to take over my server. it would make the script better 2 so he asked for sugestions and i gavve him one.

Posted
lol. im not seting any rules for them. just incase they try to take over my server. it would make the script better 2 so he asked for sugestions and i gavve him one.

I still thinking admin isnt a reason to script for someone, being a friend maybe will be a better reason :)

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

yea. i understand. my problem is that i am working on mta first war server and there isnt much to work with in community. my server makes no money cause its currently down till i get a team spawn script.

  • 3 months later...
Posted

did you edit it? or author posted a resource with syntax error o.O ?

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted (edited)
did you edit it? or author posted a resource with syntax error o.O ?

First i edited it, to my new coordinates but original doesnt work either, but know i notice this only works without play but i kinda need it for play/freeroam :/ any way to get it work?

EDIT: It did work with original, without play mode i'll try editing coordinates now to see if it will work....

Edited by Guest
Posted

it's some kind of "replacement" for play. play is only spawning, nothing more. freeroam is that gui thing.

so start this, and freeroam.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

Yes, when i edit it says unexpected symbol near ''something weird '' in log it says:

[2010-09-19 10:31:12] Resource 'p-spawn' changed, reloading and starting 
[2010-09-19 10:31:12] Starting p-spawn 
[2010-09-19 10:31:12] SCRIPT ERROR: p-spawn\script.lua:1: unexpected symbol near 'ï' 
[2010-09-19 10:31:12] WARNING: Loading script failed: p-spawn\script.lua:1: unexpected symbol near 'ï' 
[2010-09-19 10:31:12] start: Resource 'p-spawn' started 
  

if i try to join then, its at mountain chilliad and i only see clouds like other people :/

Posted

Just download the newest version - i just checked it - and it doesnt have any syntax errors. Nor "ï" symbol inside.

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted
Just download the newest version - i just checked it - and it doesnt have any syntax errors. Nor "ï" symbol inside.

Thats weird, can it be caused by any other scripts? But i'll try

Nope still doesn't work, :( i think its an other resource i run.... Should i unzip it?

By the way, the server itself said something different than that I it was like a mini-/

EDIT downloaded newest again, so it spawns me on the regular place but when i edit it it gives that symbol error

Posted

edit with something better than notepad - which problably is causing problems with file encoding.

notepad++ for example

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

open admin panel, go to resources tab, select freeroam, then configure. there will be option to disable this map to pop up every death

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...