SA-MP Forums Archive
Help me make cordinate or spawn - 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 me make cordinate or spawn (/showthread.php?tid=623989)



Help me make cordinate or spawn - DandyCorleone - 09.12.2016

please tell me, what the name of the application or system to make cordinate or spawn locations so we can spawn to the venue


Re: Help me make cordinate or spawn - AbyssMorgan - 09.12.2016

SA:MP /save


Re: Help me make cordinate or spawn - DandyCorleone - 09.12.2016

@AbyssMorgan
The new, how I can get a number coordinates
examples /gotoxy 1354.0022,775.3280,10.6797,274.2816
Код:
TelePlayer(playerid, 1354.0022,775.3280,10.6797,274.2816);



Re: Help me make cordinate or spawn - AbyssMorgan - 09.12.2016

PHP код:
CMD:tpto(playerid,params[]){
    
//check is player admin
    
new Float:x,Float:y,Float:z,Float:angle,int,vw;
    if(
sscanf(params,"ffffI(-1)I(-1)",x,y,z,angle,int,vw)) return SendClientMessage(playerid,-1,"Usage /tpto <X> <Y> <Z> <A> [interior] [virtualworld]");
    
SetPlayerPos(playerid,x,y,z);
    
SetPlayerFacingAngle(playerid,angle);
    if(
int != -1SetPlayerInterior(playerid,int);
    if(
vw != -1SetPlayerVirtualWorld(playerid,vw);
    
SetCameraBehindPlayer(playerid);
    return 
1;




Re: Help me make cordinate or spawn - DandyCorleone - 10.12.2016

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
PHP код:
CMD:tpto(playerid,params[]){
    
//check is player admin
    
new Float:x,Float:y,Float:z,Float:angle,int,vw;
    if(
sscanf(params,"ffffI(-1)I(-1)",x,y,z,angle,int,vw)) return SendClientMessage(playerid,-1,"Usage /tpto <X> <Y> <Z> <A> [interior] [virtualworld]");
    
SetPlayerPos(playerid,x,y,z);
    
SetPlayerFacingAngle(playerid,angle);
    if(
int != -1SetPlayerInterior(playerid,int);
    if(
vw != -1SetPlayerVirtualWorld(playerid,vw);
    
SetCameraBehindPlayer(playerid);
    return 
1;

It is not my intention
I mean how do I get a number cordinated


Re: Help me make cordinate or spawn - aymane123 - 10.12.2016

if u mean to get the numbers of postion red this:
Go to your samp debug (you can find it are gta sa directory) go to the place you want then type /save now go to documents and settings then gtasa user files then samp the save and u find the position coordinate.


Re: Help me make cordinate or spawn - J0sh... - 10.12.2016

PHP код:
CMD:loc(playeridparams[]) {
    new 
Float:xFloat:yFloat:zstr[128];
    
GetPlayerPos(playeridxyz);
    
format(strsizeof str"%f, %f, %f"xyz);
    
SendClientMessage(playerid, -1str);
    return 
1;