17.05.2012, 11:32
Hello friiends.i want to ask you how to insert this code :
To here :
Code:
else if invited[playerid][GetPlayerVirtualWorld(playerid)] = true; SetPlayerPos(playerid, HouseInformation[x][TelePos][0], HouseInformation[x][TelePos][1], HouseInformation[x][TelePos][2]); SetPlayerInterior(playerid, HouseInformation[x][interiors]); SetPlayerVirtualWorld(playerid, 15500000 + x);
Code:
public OnPlayerEnterDynamicCP(playerid, checkpointid) { for(new x; x<houseid; x++) { if(HouseInformation[x][checkpointidx][0] == checkpointid) { if(InHouse[playerid] != -1) { InHouse[playerid] = -1; return 1; } InHouseCP[playerid] = x; new Pname[28]; GetPlayerName(playerid, Pname, 28); if(HouseInformation[x][owner][0] != 0 && !strcmp(Pname, HouseInformation[x][owner][0])) { SetPlayerPos(playerid, HouseInformation[x][TelePos][0], HouseInformation[x][TelePos][1], HouseInformation[x][TelePos][2]); SetPlayerInterior(playerid, HouseInformation[x][interiors]); SetPlayerVirtualWorld(playerid, 15500000 + x); } if(!HouseInformation[x][owner][0]) SendClientMessage(playerid, -1, "==|Sis namas parduodamas jei norite /npirkti!"); return 1; } if(HouseInformation[x][checkpointidx][1] == checkpointid) { if(InHouse[playerid] == -1) { InHouse[playerid] = x; return 1; } SetPlayerPos(playerid, HouseInformation[x][EnterPos][0], HouseInformation[x][EnterPos][1], HouseInformation[x][EnterPos][2]); SetPlayerInterior(playerid, 0); SetPlayerVirtualWorld(playerid, 0); return 1; } } return 1; }