Help Pls +Rep - 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)
+--- Thread: Help Pls +Rep (
/showthread.php?tid=317009)
Help Pls +Rep -
DarkB0y - 09.02.2012
Hi all I want help by making teleport cmd i don't know how to make that and i don't know how to take the Float X Float Y Float Z Pos
Pls help
Re: Help Pls +Rep -
Niko_boy - 09.02.2012
Go Ingame do /save the file get saved inside Mydoucument/Gta sanandreas userfiles/SAMP/savedpostions.txt
The coordinates Like AddPlayerClass(SKIN,X,Y,Z,rotx.... something
copy values of x, y, z,
those are FLAT X , FLOAT Y and FLOAT Z
thats it!

EDIT:- i just saw you dont know even how to make command , read tutorials learn basics! in samp wiki and samp forums
Example command
Код:
if(!strcmp(cmdtext, "/tp"))
{
SendClientMessage(playerid, 0xFFFFFFFF, "telelported!");
SetPlayerPos(playerid,0.00,0.00,0.00);//it will teleport player at a farm!
return 1;
}
Re: Help Pls +Rep -
DarkB0y - 09.02.2012
k ty but i read TUT i do it but they gave me erorrs
Re: Help Pls +Rep -
Niko_boy - 09.02.2012
Well you need to know how to fix errors or show code+errors u got!
so ppl can better assisst you!
Welcome!
Re: Help Pls +Rep -
DarkB0y - 09.02.2012
This i use
Код:
if(strcmp("/bayside", cmdtext, true) == 0)
{
SetPlayerPos(playerid, -2271.0764, 2317.8457, 4.8202);
SetPlayerFacingAngle(playerid, 180);
SendClientMessage(playerid, 0x00FFFFAA, "You have been teleported to Bayside.");
return 1;
}
Those Are Errors
Код:
C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50727) : error 010: invalid function or declaration
C:\Documents and Settings\bob\Desktop\Satdm\SATDM~RP v13.5\Gamemodes\SATDM_v13.pwn(50732) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: Help Pls +Rep -
Niko_boy - 09.02.2012
are those lines correct ?
i mean lines u posted are>
50727 &
50732
goto pawno press CTRL + G and enter those line then u will be at error lines paste those!
Re: Help Pls +Rep -
DarkB0y - 09.02.2012
yes i use this in the GM so that why those lines
Re: Help Pls +Rep -
MP2 - 09.02.2012
Put it under OnPlayerCommandText.
Re: Help Pls +Rep -
DarkB0y - 09.02.2012
where do u mean under what ? pls show me cod
Re: Help Pls +Rep -
Niko_boy - 09.02.2012
under like
public OnPlayerCommandText etc..
at there some wher ein between it
Read tuts man !!