enum buildingsEnum{
Float:b_x,
Float:b_y,
Float:b_z,
Float:b_ix,
Float:b_iy,
Float:b_iz,
b_Interior,
b_shopname[15]
}
new bInfo[] [buildingsEnum] =
{
{1368.9445,-1279.7567,13.5469,285.6350,-41.4551,1001.5156,1,"AMMUN1"}//ammunation1
};
ocmd befehl:
ocmd:reingehen(playerid,params[])
{
for(new i=0; i<sizeof(bInfo); i++)
{
if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i] [b_x],bInfo[i] [b_y],bInfo[i] [b_z]))continue;
SetPlayerPos(playerid,bInfo[i] [b_ix],bInfo[i] [b_iy],bInfo[i] [b_iz]);
SetPlayerInterior(playerid,bInfo[i] [b_Interior]);
SetPlayerVirtualWorld(playerid,i);
SetPlayerShopName(playerid,bInfo[i] [b_shopname]);
return 1;
}
return 1;
}
ocmd:verlassen(playerid,params[])
{
for(new i=0; i<sizeof(bInfo); i++)
{ if(GetPlayerVirtualWorld(playerid) !=i)continue;
if(!IsPlayerInRangeOfPoint(playerid,2,bInfo[i] [b_ix],bInfo[i] [b_iy],bInfo[i] [b_iz]))continue;
SetPlayerPos(playerid,bInfo[i] [b_x],bInfo[i] [b_y],bInfo[i] [b_z]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
return 1;
}
return 1;
}
Ich frage mich wie ich da neue interiors mache