Jump to content

[TUTORIAL SA:MP] Comanda [/gotoin]


Recommended Posts

Posted

Salut, astazi o sa va arat cum sa va duceti arena staff-ului.sa-mp-050.thumb.png.97817da06e5ac85204d159bc5a07217c.png

 

Comanda este

 

CMD:gotoin(playerid, params[])
{
    if(PlayerInfo[playerid][pWantedLevel] > 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "{CC0033}Nu poti folosi aceasta comanda daca ai wanted.");
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
    if(IsPlayerConnected(playerid))
    {
		if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 3)
		{
			if (GetPlayerState(playerid) == 2)
			{
				new tmpcar = GetPlayerVehicleID(playerid);
				SetVehiclePos(tmpcar, 1416.107000,0.268620,1000.926000);
			}
			else
			{
				SetPlayerPosEx(playerid, 1416.107000,0.268620,1000.926000);
			}
			new string[64],sendername[25];
			SendClientMessage(playerid, COLOR_GRAD1, "You have been teleported.");
			SetPlayerInterior(playerid,1);
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "Admin %s Teleported to In.", sendername);
			Adminlog(string);
			if(InHouse[playerid] > -1)
			{
			    StopAudioStreamForPlayer(playerid);
			}
			InHQ[playerid] = -1;
			InHouse[playerid] = -1;
			InBussines[playerid] = -1;
			SetPlayerVirtualWorld(playerid,0);
		}
		else
		{
			SendClientMessage(playerid, COLOR_WHITE,"{5CAD5C}Error: Your admin/helper level isn't high enough to use this command.");
		}
	}
	return 1;
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...