19.10.2013, 01:06
Would somebody help me to complete this ?
What to put in here to make the player enter the interior that i put in /createhouse? it's something about looping all houses
pawn Код:
enum hInfo
{
hOwner[24],
hOwned,
hID,
hPrice,
hInterior,
hVirtualWorld,
hEnterCheckpoint,
Float:Xpos,
Float:Ypos,
Float:Zpos,
}
new HouseInfo[MAX_HOUSES][hInfo];
CMD:createhouse(playerid, params[])
{
new HVW, HID, HPrice, HInt,string[128], houseid;
new Float:x,Float:y,Float:z;
if(sscanf(params, "iiii", HID, HInt, HVW, HPrice)) return SendClientMessage(playerid, COLOR_WHITE, "/createhouse [House ID] [interior] [Virualworld] [price]");
HouseInfo[houseid][hID] = HID;
HouseInfo[houseid][hInterior] = HInt;
HouseInfo[houseid][hVirtualWorld] = HVW;
HouseInfo[houseid][hPrice] = HPrice;
GetPlayerPos(playerid,x,y,z);
CreateDynamicCP(x,y,z,1.0,-1,-1,-1,50.0);
format(string, sizeof(string), "House ID: %i\nOwner: No Owner\n Price: %i", HID, HPrice);
CreateDynamic3DTextLabel(string,COLOR_WHITE,x,y,z,50.0);
return 1;
}
What to put in here to make the player enter the interior that i put in /createhouse? it's something about looping all houses
pawn Код:
public OnPlayerEnterDynamicCP(playerid,checkpointid)