19.08.2015, 21:43
so shall I put this in CMD:enter ?
or what
im so confused now
I got all those stuff
this is the cmd when you enter
or what
im so confused now
I got all those stuff
pawn Код:
AddHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior, Virtualworld);
AddSafeHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior, Virtualworld);
AddGCHouse(houseid, Float:iconX, Float:iconY, Float:iconZ, Float:interiorX, Float:interiorY, Float:interiorZ, Cost, Sell, Interior, Virtualworld);
pawn Код:
dcmd_enter(playerid,params[])
{
#pragma unused params
new str1[255],pname[24],housenumber;
housenumber = GetHouseID(playerid);
GetPlayerPos(playerid, housex, housey, housez);
format(str1, sizeof(str1), "Houses/houseid%d", housenumber);
GetPlayerName(playerid, pname, 24);
if(hInfo[housenumber][Locked]==1) return SendClientMessage(playerid, c_r, "This house is locked!");
playerworld[playerid] = GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, c_y, "You entered the house!");
SetPlayerVirtualWorld(playerid, hInfo[housenumber][Virtualworld]);
SetPlayerInterior(playerid, hInfo[housenumber][Interior]);
SetPlayerPos(playerid, hInfo[housenumber][InteriorX], hInfo[housenumber][InteriorY], hInfo[housenumber][InteriorZ]);
playerinterior[playerid] = hInfo[housenumber][Interior];
return 1;
}