Jump to content
  • 0

Creare TELEPORT


Francisco

Question

5 answers to this question

Recommended Posts

if(strcmp(cmdtext, "/sf", true) == 0)
{
    new sfcar;
	sfcar = GetPlayerVehicleID(playerid);
	if(!GetPlayerVehicleSeat(playerid)) SetVehiclePos(sfcar,X,Y,Z);
	else SetPlayerPos(playerid,X,Y,Z);
	SetPlayerInterior(playerid, 0);
	return 1;
}
X,Y,Z = Coordonate  te duci in joc la sf tastezi /save si dupa intri in
C:\Documents and Settings\(User)\My Documents\GTA San Andreas User Files\SAMP\savedpositions.txt

copiezi coordonatele si inlocuiesti X,Y,Z

(User) = userul tau :P

76561198055981270.png

http://devilgaming.ro/forum

Link to comment
Share on other sites

Nu mi-a mers. I-mi apare aceasta eroare la compilare

C:\Users\Administrator\Desktop\TrenSF.pwn(33) : error 010: invalid function or declaration

C:\Users\Administrator\Desktop\TrenSF.pwn(36) : error 010: invalid function or declaration

C:\Users\Administrator\Desktop\TrenSF.pwn(37) : error 010: invalid function or declaration

C:\Users\Administrator\Desktop\TrenSF.pwn(38) : error 010: invalid function or declaration

C:\Users\Administrator\Desktop\TrenSF.pwn(40) : error 010: invalid function or declaration

C:\Users\Administrator\Desktop\TrenSF.pwn(42) : warning 203: symbol is never used: "sfcar"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Errors.

Uite asa am facut:

if(strcmp(cmdtext, "/garasf", true) == 0)
{
    new sfcar;
	sfcar = GetPlayerVehicleID(playerid);
    if(!GetPlayerVehicleSeat(playerid)) SetVehiclePos(sfcar,0,-1952.3938,131.8837,26.2813,271.4216,0,0,0,0,0,0);
    else SetPlayerPos(playerid,0,-1952.3938,131.8837,26.2813,271.4216,0,0,0,0,0,0);
    SetPlayerInterior(playerid, 0);
    return 1;
}

Link to comment
Share on other sites

pune asa

	if(strcmp(cmd, "/gotosf", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 3)
			{
				if (GetPlayerState(playerid) == 2)
				{
					new tmpcar = GetPlayerVehicleID(playerid);
					SetVehiclePos(tmpcar, -1417.0,-295.8,14.1);
					TelePos[playerid][0] = 0.0;TelePos[playerid][1] = 0.0;
				}
				else
				{
					SetPlayerPos(playerid, -1417.0,-295.8,14.1);
				}
				SendClientMessage(playerid, COLOR_GRAD1, "   You have been teleported");
				SetPlayerInterior(playerid,0);
				PlayerInfo[playerid][pInt] = 0;
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD1, "   You are not authorized to use that command!");
			}
		}
		return 1;
	}

Link to comment
Share on other sites

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.