SA-MP Forum
February 09, 2010, 11:05:11 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hosted tab listings available from serverFFS
 
   Home   Help Login Register  
Pages: 1 2 3 [4] 5 6 ... 15
  Print  
Author Topic: [Tutorial] Creating a sa-mp server + getting it online.  (Read 46666 times)
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #45 on: September 23, 2008, 04:48:05 PM »

/get <id> works now, I had    cmd = strtok(cmdtext, idx); twice in there.. Smiley

Now /goto still..
Also when I goto my own ID it falls at that place in a farm..


Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
°ғαιιοцт°
High-roller
*****
Posts: 1411



View Profile WWW
« Reply #46 on: September 23, 2008, 06:21:59 PM »

yeah, you shouldn't go to yourself xD you can add a message like "You cannot teleport to yourself!"

but what was wrong with goto?

you said
Quote
you fall near blueberry

but what do you mean with that?
Logged











llllllllllllllllllllll                lllllll lllllll                                           llll         
l::::::::::::::::::::l                l:::::l l:::::l                                        lll:::l         
l::::::::::::::::::::l                l:::::l l:::::l                                        l:::::l         
ll::::::lllllllll::::l                l:::::l l:::::l                                        l:::::l         
  l:::::l       lllllllllllllllllll    l::::l  l::::l    lllllllllll   llllll    lllllllllllll:::::lllllll   
  l:::::l             l::::::::::::l   l::::l  l::::l  ll:::::::::::ll l::::l    l::::ll:::::::::::::::::l   
  l::::::llllllllll   lllllllll:::::l  l::::l  l::::l l:::::::::::::::ll::::l    l::::ll:::::::::::::::::l   
  l:::::::::::::::l            l::::l  l::::l  l::::l l:::::lllll:::::ll::::l    l::::lllllll:::::::llllll   
  l:::::::::::::::l     lllllll:::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l::::::llllllllll   ll::::::::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l            l::::llll::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l           l::::l    l:::::l  l::::l  l::::l l::::l     l::::ll:::::llll:::::l      l:::::l    llllll
ll:::::::ll         l::::l    l:::::l l::::::ll::::::ll:::::lllll:::::ll:::::::::::::::ll    l::::::llll:::::l
l::::::::ll         l:::::llll::::::l l::::::ll::::::ll:::::::::::::::l l:::::::::::::::l    ll::::::::::::::l
l::::::::ll          l::::::::::ll:::ll::::::ll::::::l ll:::::::::::ll   ll::::::::ll:::l      ll:::::::::::ll
lllllllllll           llllllllll  llllllllllllllllllll   lllllllllll       llllllll  llll        lllllllllll 
          Stunt Universe 2.1 (official newest Stunt Universe)
               91.121.193.84:8888
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #47 on: September 23, 2008, 06:38:12 PM »

When I do /goto <id> I teleport to some location at a farm near LS.. under the ground.
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
Yeatric.
Gangsta
****
Posts: 922



View Profile WWW
« Reply #48 on: September 23, 2008, 07:10:02 PM »

When I do /goto <id> I teleport to some location at a farm near LS.. under the ground.

Then the guy where you teleport to is @ the SkinSelectionScreen.
Logged
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #49 on: September 23, 2008, 08:19:43 PM »

Then the guy where you teleport to is @ the SkinSelectionScreen.

Nope, he's just standing next to me :/
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
Yeatric.
Gangsta
****
Posts: 922



View Profile WWW
« Reply #50 on: September 24, 2008, 09:47:41 AM »

Then the guy where you teleport to is @ the SkinSelectionScreen.

Nope, he's just standing next to me :/

Was his GTA minimized?
Logged
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #51 on: September 24, 2008, 12:27:30 PM »

Nope, but I deleted another script wich was apparantly anoying /goto. Thanks for the help guys, fixed now Smiley
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #52 on: September 24, 2008, 04:58:57 PM »

The normal teleport (to a location) question:
How do I teleport my car with me?
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
°ғαιιοцт°
High-roller
*****
Posts: 1411



View Profile WWW
« Reply #53 on: September 24, 2008, 05:16:46 PM »

Code:
if(strcmp(cmdtext, "/smoke", true) == 0)
{
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),-2110.0027,903.5170,76.4563);
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0.0); //enter your facing angle here
SetCameraBehindPlayer(playerid); //not necessary (just for if you want it :P)
LinkVehicleToInterior(GetPlayerVehicleID(playerid),interior); //put the interior of your teleport here.
}
else
{
SetPlayerPos(playerid,-2110.0027,903.5170,76.4563);
SetPlayerFacingAngle(playerid, 0.0); //enter your facing angle here
SetCameraBehindPlayer(playerid); //not necessary (just for if you want it :P)
}
SetPlayerInterior(playerid, interior); //put the interior of your teleport here, you can find them at http://nl.wikigta.org/wiki/Hidden_Interiors_(GTA_San_Andreas)
SendClientMessage(playerid, 0x0066FFAA, You have been teleported to -smoke-);
return 1;
}


(from http://forum.sa-mp.com/index.php?topic=72147.msg481375#msg481375)
Logged











llllllllllllllllllllll                lllllll lllllll                                           llll         
l::::::::::::::::::::l                l:::::l l:::::l                                        lll:::l         
l::::::::::::::::::::l                l:::::l l:::::l                                        l:::::l         
ll::::::lllllllll::::l                l:::::l l:::::l                                        l:::::l         
  l:::::l       lllllllllllllllllll    l::::l  l::::l    lllllllllll   llllll    lllllllllllll:::::lllllll   
  l:::::l             l::::::::::::l   l::::l  l::::l  ll:::::::::::ll l::::l    l::::ll:::::::::::::::::l   
  l::::::llllllllll   lllllllll:::::l  l::::l  l::::l l:::::::::::::::ll::::l    l::::ll:::::::::::::::::l   
  l:::::::::::::::l            l::::l  l::::l  l::::l l:::::lllll:::::ll::::l    l::::lllllll:::::::llllll   
  l:::::::::::::::l     lllllll:::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l::::::llllllllll   ll::::::::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l            l::::llll::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l           l::::l    l:::::l  l::::l  l::::l l::::l     l::::ll:::::llll:::::l      l:::::l    llllll
ll:::::::ll         l::::l    l:::::l l::::::ll::::::ll:::::lllll:::::ll:::::::::::::::ll    l::::::llll:::::l
l::::::::ll         l:::::llll::::::l l::::::ll::::::ll:::::::::::::::l l:::::::::::::::l    ll::::::::::::::l
l::::::::ll          l::::::::::ll:::ll::::::ll::::::l ll:::::::::::ll   ll::::::::ll:::l      ll:::::::::::ll
lllllllllll           llllllllll  llllllllllllllllllll   lllllllllll       llllllll  llll        lllllllllll 
          Stunt Universe 2.1 (official newest Stunt Universe)
               91.121.193.84:8888
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #54 on: September 24, 2008, 06:43:18 PM »

Ah nvm then, too long ^^
But thanks anyway Smiley
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
°ғαιιοцт°
High-roller
*****
Posts: 1411



View Profile WWW
« Reply #55 on: September 24, 2008, 07:15:02 PM »

but you can delete the SendClientMessages, SetPlayerInterior, LinkVehicleToInterior and SetCameraBehindPlayer...

they aren't necessary
Logged











llllllllllllllllllllll                lllllll lllllll                                           llll         
l::::::::::::::::::::l                l:::::l l:::::l                                        lll:::l         
l::::::::::::::::::::l                l:::::l l:::::l                                        l:::::l         
ll::::::lllllllll::::l                l:::::l l:::::l                                        l:::::l         
  l:::::l       lllllllllllllllllll    l::::l  l::::l    lllllllllll   llllll    lllllllllllll:::::lllllll   
  l:::::l             l::::::::::::l   l::::l  l::::l  ll:::::::::::ll l::::l    l::::ll:::::::::::::::::l   
  l::::::llllllllll   lllllllll:::::l  l::::l  l::::l l:::::::::::::::ll::::l    l::::ll:::::::::::::::::l   
  l:::::::::::::::l            l::::l  l::::l  l::::l l:::::lllll:::::ll::::l    l::::lllllll:::::::llllll   
  l:::::::::::::::l     lllllll:::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l::::::llllllllll   ll::::::::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l            l::::llll::::::l  l::::l  l::::l l::::l     l::::ll::::l    l::::l      l:::::l         
  l:::::l           l::::l    l:::::l  l::::l  l::::l l::::l     l::::ll:::::llll:::::l      l:::::l    llllll
ll:::::::ll         l::::l    l:::::l l::::::ll::::::ll:::::lllll:::::ll:::::::::::::::ll    l::::::llll:::::l
l::::::::ll         l:::::llll::::::l l::::::ll::::::ll:::::::::::::::l l:::::::::::::::l    ll::::::::::::::l
l::::::::ll          l::::::::::ll:::ll::::::ll::::::l ll:::::::::::ll   ll::::::::ll:::l      ll:::::::::::ll
lllllllllll           llllllllll  llllllllllllllllllll   lllllllllll       llllllll  llll        lllllllllll 
          Stunt Universe 2.1 (official newest Stunt Universe)
               91.121.193.84:8888
Hypar
Gangsta
****
Posts: 581



View Profile WWW
« Reply #56 on: September 24, 2008, 08:47:13 PM »

Ok, that's a lot less Tongue
Logged

PAWN Code:
if(strcmp(cmd,"/getcar",true) == 0)
{
    return CarToPlayer(playerid);
}
SaW
High-roller
*****
Posts: 1139



View Profile
« Reply #57 on: October 05, 2008, 10:42:28 AM »

Nice tut but maybe you should add Simons debug mode instead of SA-MPs own. It's way better and can be done in the server.
Logged

Woozy
Little Clucker
*
Posts: 4


View Profile
« Reply #58 on: October 05, 2008, 09:08:58 PM »

Thank you very much that helped me a lot  Wink
Logged
[M]deLux
Huge Clucker
***
Posts: 426



View Profile WWW
« Reply #59 on: October 05, 2008, 09:31:00 PM »

you might want to add http://check.delux-host.com to see the connectivity of the server...


Logged

Pages: 1 2 3 [4] 5 6 ... 15
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF one | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!