[AJUDA] Venda de carro entra players
#5

й so por Esse Code aqi no seu GM

Код:
	if(strcmp(cmd, "/darchaves", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			new car;
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD1, "USE: /darchaves [id]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if(HireCar[playerid] == 299 && PlayerInfo[playerid][pPHousekey] == 255)
			{
				SendClientMessage(playerid, COLOR_GRAD1, "  Vocк nгo tem uma chave para dar");
				return 1;
			}
			else
			{
				if(HireCar[playerid] != 299 && SwitchKey[playerid] == 0)
				{
					car = HireCar[playerid];
					VTrancado[car] = 0;
					UnLockCar(car);
					HireCar[playerid] = 299;
				}
				else
				{
					car = PlayerInfo[playerid][pPHousekey]+totalveiculos;
				}
			}
			if (IsPlayerConnected(giveplayerid))
			{
			    if(giveplayerid != INVALID_PLAYER_ID)
			    {
					if(ProxDetectorS(5.0, playerid, giveplayerid))
					{
						if(HireCar[giveplayerid] != 299)
						{
							VTrancado[HireCar[giveplayerid]] = 0;
							UnLockCar(HireCar[giveplayerid]);
						}
						HireCar[giveplayerid] = car;
						HireCar[playerid] = 999;
						GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
						GetPlayerName(playerid, sendername, sizeof(sendername));
						format(string, sizeof(string), "   Vocк deu a chave do seu veiculo para %s", giveplayer);
						PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
						SendClientMessage(playerid, COLOR_GRAD1, string);
						format(string, sizeof(string), "   Vocк recebeu a chave do veiuclo de %s", sendername);
						SendClientMessage(giveplayerid, COLOR_GRAD1, string);
						format(string, sizeof(string), "* %s da uma chave para %s.", sendername ,giveplayer);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					}
				}
			}
		}
		return 1;
	}
pelo uq eu entendi й isso !

Eu entendi que й pra dar Chaves pra outro Player , Certo ?
Reply


Messages In This Thread
[AJUDA] Venda de carro entre players - by Liba.Nakajima - 11.10.2011, 22:11
Re: [AJUDA] Venda de carro entra players - by Liba.Nakajima - 12.10.2011, 20:58
Re: [AJUDA] Venda de carro entra players - by [BWL]DuST - 12.10.2011, 21:57
Re: [AJUDA] Venda de carro entra players - by Slayer1 - 12.10.2011, 23:41
Re: [AJUDA] Venda de carro entra players - by Laercio - 13.10.2011, 05:15
Re: [AJUDA] Venda de carro entra players - by Liba.Nakajima - 13.10.2011, 17:07

Forum Jump:


Users browsing this thread: 2 Guest(s)