17.06.2017, 21:51 
	
	
	
		Hi guys! I want to do something to my PropertyCreate System.
First of all this is the command /ahouseentrance (to create a house)
So.. I want to create a different pickup if the house is not bought and if it's bought another different pickup. 
How can I do that? Can u help me? Thanks.
	
	
	
First of all this is the command /ahouseentrance (to create a house)
Code:
	if(strcmp(cmd, "/ahouseentrance", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "{AFAFAF}SYNTAX{FFFFFF}: /ahouseentrance [houseid]");
				return 1;
			}
			new id = strval(tmp);
			if(PlayerInfo[playerid][pAdministrator] >= 4)
			{
			    //new pmodel;
				new Float:x,Float:y,Float:z;
				GetPlayerPos(playerid, x, y, z);
				Houses[id][EnterX] = x;
				Houses[id][EnterY] = y;
				Houses[id][EnterZ] = z;
				Houses[id][EnterWorld] = GetPlayerVirtualWorld(playerid);
				Houses[id][EnterInterior] = GetPlayerInterior(playerid);
  				new Float:angle;
				GetPlayerFacingAngle(playerid, angle);
				Houses[id][EnterAngle] = angle;
    			SaveHouses(id);
				new form[128];
				format(form, sizeof(form), "You have set House ID: %d's location", id);
				SendClientMessage(playerid, COLOR_ADMINCMD, form);
				Move3DTextLabel(housetext[id], string, 0xF0F8FFAA, x, y, z);
				SaveHouses(id);
			}
			else
			{
				SendClientMessage(playerid, COLOR_GREY, "   Nu esti autorizat sa folosesti aceasta comanda.");
			}
		}
		return 1;
	}
How can I do that? Can u help me? Thanks.

