Removal of 'You need to be in' for a specific faction
#5

Quote:
Originally Posted by carlo rizzi
Посмотреть сообщение
What is the if statement above the code?
Код:
		else if(DynVeh[vehicleid] != -1)
		{
			new string[128], Float:slx, Float:sly, Float:slz;
			GetPlayerPos(playerid, slx, sly, slz);
			if(DynVehicleInfo[DynVeh[vehicleid]][gv_igID] != INVALID_GROUP_ID && (PlayerInfo[playerid][pMember] != DynVehicleInfo[DynVeh[vehicleid]][gv_igID]))
			{
				RemovePlayerFromVehicle(playerid);
				SetPlayerPos(playerid, slx, sly, slz+1.3);
				defer NOPCheck(playerid);
				format(string, sizeof(string), "You need to be in %s to drive this vehicle.", arrGroupData[DynVehicleInfo[DynVeh[vehicleid]][gv_igID]][g_szGroupName]);
				SendClientMessageEx(playerid, COLOR_GRAD2, string);
			}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 6 Guest(s)