SA-MP Forums Archive
/save werid - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /save werid (/showthread.php?tid=252556)



/save werid - Coles - 01.05.2011

hey i made some teleports to make getting to places on the map faster and only bigear, sf and sfair i go ingame and say /save and then i put the code in no errors or warnings and restart again and say /ls for los santo's and it puts me in middle of no wear over san ferior, what am i doing wrong is it my scripting problems all locations are outside do i need to set an interior
PHP код:
//My added commands
command(lsplayeridparams[]) // change the ls to whatever command you want
{
    
SendClientMessageplayeridWHITE"You are teleporting to LS" ); // remember to change the colour!
    
SetPlayerPosplayerid, -885.2749,1757.8549,13.5469); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;
}
command(sfplayeridparams[]) // this command teles you to SF
{
    
SendClientMessageplayeridWHITE"You are teleporting to SF" ); // remember to change the colour!
    
SetPlayerPosplayerid, -1916.4294,300.0021,41.0469); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;
}
command(lvplayeridparams[]) // this command teles you to LV
{
    
SendClientMessageplayeridWHITE"You are teleporting to LV" ); // remember to change the colour!
    
SetPlayerPosplayerid, -2416.0400,2319.0842,10.8203); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;
}
command(sfairplayeridparams[]) // this command teles you to SFAIR
{
    
SendClientMessageplayeridWHITE"You are teleporting to SFAIR" ); // remember to change the colour!
    
SetPlayerPosplayerid, -1548.6362,-433.6081,6.0047); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;
}
command(lvairplayeridparams[]) // this command teles you to LVAIR
{
    
SendClientMessageplayeridWHITE"You are teleporting to LVAIR" ); // remember to change the colour!
    
SetPlayerPosplayerid, -1706.3243,1607.0999,10.0221); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;
}
command(bigearplayeridparams[]) // this command teles you to BIGEAR
{
    
SendClientMessageplayeridWHITE"You are teleporting to BIGEAR" ); // remember to change the colour!
    
SetPlayerPosplayerid, -376.2169,1573.1632,75.9308); // Change the co-ords to your position
    
SetPlayerVirtualWorldplayerid);
    return 
1;




Re: /save werid - MadeMan - 01.05.2011

Show your commands.


Re: /save werid - Coles - 01.05.2011

there i added above.


Re: /save werid - Coles - 01.05.2011

is that what i needed to show?


Re: /save werid - Tommy_Mandaz - 01.05.2011

Make sure your getting the X, Y, and Z and not the Facing A...


Re: /save werid - Coles - 01.05.2011

a..... this is my first time with scripting i started yesterday ill read this thread when i get home around 5 got school then job interview at 3:50/4:20


Re: /save werid - Coles - 01.05.2011

bump :] could anyone fix the code if needs fixing or test it possibly all the commands there should tele you where they say


Re: /save werid - Luis- - 01.05.2011

Are these commands inside of OnPlayerCommandText? if so remove them from it and place them on there own at the bottom of your script.


Re: /save werid - Coles - 01.05.2011

Quote:
Originally Posted by -Luis
Посмотреть сообщение
Are these commands inside of OnPlayerCommandText? if so remove them from it and place them on there own at the bottom of your script.
they are on the bottom on the script.


Re: /save werid - Coles - 01.05.2011

common need a reply really quick


Re: /save werid - Prumpuz - 01.05.2011

When using /save command and taking the coordinates from there, make sure you take the first 3 after the skinid. They are x, y, z.

For example here:
AddPlayerClass(1,2326.9236,551.9969,7.7813,180.538 4,0,0,0,0,0,0);
You would take 2326.9236,551.9969,7.7813

I hope the problem is as simple as that and that I was able to help.


Re: /save werid - Skylar Paul - 01.05.2011

Umm, I wasn't aware you could do:

pawn Код:
command(ls, playerid, params[]) // change the ls to whatever command you want
{
Try:

pawn Код:
COMMAND:ls(playerid, params[])
{



Re: /save werid - Coles - 01.05.2011

nope didn't work


Re: /save werid - Luis- - 01.05.2011

Quote:
Originally Posted by Skylar Paul
Посмотреть сообщение
Umm, I wasn't aware you could do:

pawn Код:
command(ls, playerid, params[]) // change the ls to whatever command you want
{
Try:

pawn Код:
COMMAND:ls(playerid, params[])
{
You can do both of those methods.


Re: /save werid - Skylar Paul - 01.05.2011

Quote:
Originally Posted by -Luis
Посмотреть сообщение
You can do both of those methods.
Righto. You learn more every day.


Re: /save werid - Coles - 02.05.2011

bump can any one help me