I get an error, server.lua:5: ')' expected near ','
I fail, and I know nothing about scripting and the commands, reading them now actually..
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
USGN = {21431}
addhook("fgspawn","spawn")
function spawn(id,usgn)
if (id,usgn) = USGN
then player spawn x==1 y==1
end
end
I didn't know what to call the thread, so I did this oO
But, if there are more errors tell me what I did wrong, don't just give me a script I wouldn't learn.
Script error.
1 
Offline

the spawn hook has no USGN id parameter