Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Ajutor comanda /gotoxyz


Question

Posted

Descrierea problemei:Deci cind dau /gotoxyz si adaug coordonatele nu se teleporteaza..
Liniile de cod / sursa / script-ul(obligatoriu):CMD:gotoxyz(playerid, params[])

{
if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
if(PlayerInfo[playerid][pAdmin] >= 5)
{
new string[128],interior,vw;
new Float:x, Float:y, Float:z;
if(sscanf(params, "fffii", x,y,z,interior,vw)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/gotoxyz <x> <y> <z> <interior> <virtual world>");
{
SetPlayerPosEx(playerid, x, y, z);
format(string,sizeof(string),"You've teleported to x = %f, y = %f, z = %f, interior %d.",x,y,z,interior);
SendClientMessage(playerid,COLOR_WHITE, string);
SetPlayerVirtualWorld(playerid, vw);
SetPlayerInterior(playerid,interior);
InHQ[playerid] = -1;
InHouse[playerid] = -1;
InBussines[playerid] = -1;
    StopAudioStreamForPlayer(playerid);
}
}
else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
return 1;
 

Imagini / Video (optional):
Alte detalii:Va Rog Ajutatima!!!

4 answers to this question

Recommended Posts

  • 0
Posted
CMD:gotoxyz(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
	if(PlayerInfo[playerid][pAdmin] >= 5)
	{
		new string[128],interior,vw;
		new Float:x, Float:y, Float:z;
		if(sscanf(params, "fffii", x,y,z,interior,vw)) return SCM(playerid,COLOR_WHITE,"{FF9900}Scrie: {33CCFF}/gotoxyz <x> <y> <z> <interior> <virtual world>");
		{
			SetPlayerPos(playerid, x, y, z);
			format(string,sizeof(string),"You've teleported to x = %f, y = %f, z = %f, interior %d.",x,y,z,interior);
			SendClientMessage(playerid,COLOR_WHITE, string);
			SetPlayerVirtualWorld(playerid, vw);
			SetPlayerInterior(playerid,interior);
			InHQ[playerid] = -1;
			InHouse[playerid] = -1;
			InBussines[playerid] = -1;
			StopAudioStreamForPlayer(playerid);
		}
	}
	else return SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
	return 1;
}	

 

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

  • 0
Posted

imi dai te rog un model in care pot folosi comanda ca poate eu nu introduc ceva corect...

  • 0
Posted (edited)

Daca ne uitam la

if(sscanf(params, "fffii", x,y,z,interior,vw))

Vedem fffii care ar veni asa Float, Float, Float, int, int (x,y,z,interior,vw)

 

Deci comanda noastra va arata asa

/gotoxyz 0.000 0.000 0.000 0 0 - ne va duce la pozitia 0.00, 0.000, 0.000, si vom avea interiorul 0 si virtualul 0.

Edited by Gireada

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.