/save werid
#1

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;

Reply
#2

Show your commands.
Reply
#3

there i added above.
Reply
#4

is that what i needed to show?
Reply
#5

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

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
Reply
#7

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

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

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.
Reply
#10

common need a reply really quick
Reply
#11

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.
Reply
#12

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[])
{
Reply
#13

nope didn't work
Reply
#14

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.
Reply
#15

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

bump can any one help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)