Jump to content

CERERE COMANDA


Dr.Calin
 Share

Recommended Posts

vipnamecolor:

CMD:vipnamecolor(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	if(!IsPlayerInAnyVehicle(playerid)) return SS(playerid, COLOR_LIGHTGREEN3, "Nu esti intr-un vehicul!", "You are not in a vehicle!");
	new carid = GetPlayerVehicleID(playerid),idcar=-1;
	for(new vv; vv < MAX_PERSONAL_VEHICLES; vv++)
	{
		if(carid == PlayerInfo[playerid][pCarID][vv])
		{
			idcar = vv;
		}
	}
	if(idcar == -1) return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom wheels on VIP vehicles.");
	if(IsPlayerConnected(playerid))
	{
		if(carid == PlayerInfo[playerid][pCarID][idcar])
		{
			if(PlayerInfo[playerid][pCarVIP][idcar] > 0)
			{
				ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLOR, DIALOG_STYLE_LIST, "VIP Car Name Color", "{FFFFFF}White\n{FF0000}Red\n{640000}Dark Red\n{00FF00}Green\n{004B01}Dark Green\n{008DFF}Blue\n{001AFF}Dark Blue\n{FFFF00}Yellow\n{FF6B00}Orange\n{EB00FF}Purple\n{590056}Dark Purple\n{8A8A8A}Gray", "Choose", "Cancel");
			}
			else return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom text on VIP vehicles.");
		}
		else return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom text on VIP vehicles.");
	}
	return 1;
}

fixveh + arearepair:

CMD:fixveh(playerid,params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
	{
		if(sscanf(params, "i")) return SCM(playerid,COLOR_GREY,"Syntax: {FFFFFF}/fixveh");
		{
			for(new i = 0; i < MAX_PLAYERS; i ++)
			{
				if(IsPlayerConnected(i))
				{
				
					RepairVehicle(GetPlayerVehicleID(i));
				}
			}
		}
		SendClientMessage(playerid, COLOR_ADMCHAT, "AdmCmd: Your car was repaired successfully.");
	}
	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	return 1;
}
CMD:arearepair(playerid,params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
	{
		new range,string[128],sendername[25];
		if(sscanf(params, "i", range)) return SCM(playerid,COLOR_GREY,"Syntax: {FFFFFF}/arearepair [range]");
		{
			for(new i = 0; i < MAX_PLAYERS; i ++)
			{
				if(range <= 0 || range >= 201) return SendClientMessage(playerid, COLOR_GREY, "Range must be between 1 and 200.");
				if(IsPlayerConnected(i))
				{
					if (ProxDetectorS(range, playerid, i))
					{
						RepairVehicle(GetPlayerVehicleID(i));
					}
				}
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "AdmCmd: Admin %s has used /arearepair and repaired cars on range %dm.", sendername,range);
			ABroadCast(COLOR_ADMCHAT, string,1);
		}
	}
	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	return 1;
} 

setstock nu o am, dar nu ai nevoie, poti schimba din baza de date(phpmyadmin)\

Sper ca te-am ajutat :P

Edited by Neville96
  • Upvote 1
Link to comment
Share on other sites

vipnamecolor:

CMD:vipnamecolor(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to log in first.");
	if(!IsPlayerInAnyVehicle(playerid)) return SS(playerid, COLOR_LIGHTGREEN3, "Nu esti intr-un vehicul!", "You are not in a vehicle!");
	new carid = GetPlayerVehicleID(playerid),idcar=-1;
	for(new vv; vv < MAX_PERSONAL_VEHICLES; vv++)
	{
		if(carid == PlayerInfo[playerid][pCarID][vv])
		{
			idcar = vv;
		}
	}
	if(idcar == -1) return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom wheels on VIP vehicles.");
	if(IsPlayerConnected(playerid))
	{
		if(carid == PlayerInfo[playerid][pCarID][idcar])
		{
			if(PlayerInfo[playerid][pCarVIP][idcar] > 0)
			{
				ShowPlayerDialog(playerid, DIALOG_VIPNAMECOLOR, DIALOG_STYLE_LIST, "VIP Car Name Color", "{FFFFFF}White\n{FF0000}Red\n{640000}Dark Red\n{00FF00}Green\n{004B01}Dark Green\n{008DFF}Blue\n{001AFF}Dark Blue\n{FFFF00}Yellow\n{FF6B00}Orange\n{EB00FF}Purple\n{590056}Dark Purple\n{8A8A8A}Gray", "Choose", "Cancel");
			}
			else return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom text on VIP vehicles.");
		}
		else return SS(playerid, COLOR_LIGHTGREEN3, "Poti folosi aceasta comanda doar pe vehicule VIP.", "You can add custom text on VIP vehicles.");
	}
	return 1;
}

fixveh + arearepair:

CMD:fixveh(playerid,params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
	{
		if(sscanf(params, "i")) return SCM(playerid,COLOR_GREY,"Syntax: {FFFFFF}/fixveh");
		{
			for(new i = 0; i < MAX_PLAYERS; i ++)
			{
				if(IsPlayerConnected(i))
				{
				
					RepairVehicle(GetPlayerVehicleID(i));
				}
			}
		}
		SendClientMessage(playerid, COLOR_ADMCHAT, "AdmCmd: Your car was repaired successfully.");
	}
	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	return 1;
}
CMD:arearepair(playerid,params[])
{
    if (PlayerInfo[playerid][pAdmin] >= 1)
	{
		new range,string[128],sendername[25];
		if(sscanf(params, "i", range)) return SCM(playerid,COLOR_GREY,"Syntax: {FFFFFF}/arearepair [range]");
		{
			for(new i = 0; i < MAX_PLAYERS; i ++)
			{
				if(range <= 0 || range >= 201) return SendClientMessage(playerid, COLOR_GREY, "Range must be between 1 and 200.");
				if(IsPlayerConnected(i))
				{
					if (ProxDetectorS(range, playerid, i))
					{
						RepairVehicle(GetPlayerVehicleID(i));
					}
				}
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "AdmCmd: Admin %s has used /arearepair and repaired cars on range %dm.", sendername,range);
			ABroadCast(COLOR_ADMCHAT, string,1);
		}
	}
	else return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
	return 1;
} 

setstock nu o am, dar nu ai nevoie, poti schimba din baza de date(phpmyadmin)\

Sper ca te-am ajutat :P

ms foarte mult tiam dat +1 dar am nevoie foarte mult de /setstock

Link to comment
Share on other sites

Modifica din phpmyadmin de la stock, mie mi se pare mai usor, de-aia nici nu am facut comanda la mine in GM, si asa nu poate sa iti modifice nimeni care are acces la comanda

apropo nu imi merge vipnamecolor dar arepair si fixveh merg perfect ms dar poate imi dai si vipnamecolor bun downloadeaza gm frankie si vezi daca poti rezolva pls

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. 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.