06.06.2010, 17:25
Hello,i want to make that if you want to go in the house,/enter,then you have to explore the house,and the house id have to be same that Explorered is in the playerstatics,but idk,it dosent work
so when i /enter it says you have to explore this first,but my explorered is same as id of the house -.-
heres CMD
so when i /enter it says you have to explore this first,but my explorered is same as id of the house -.-
heres CMD
Код:
if(strcmp(cmdtext, "/enter", true) == 0) { for(new i = 0; i < sizeof(HouseInfo); i++) { if (PlayerToPoint(3, playerid,HouseInfo[i][hEntrancex], HouseInfo[i][hEntrancey], HouseInfo[i][hEntrancez])) { if(PlayerStatistics [ playerid ] [ Explorered ] == i) { SetPlayerInterior(playerid,HouseInfo[i][hInt]); SetPlayerPos(playerid,HouseInfo[i][hExitx],HouseInfo[i][hExity],HouseInfo[i][hExitz]); } return 1; } else { GameTextForPlayer(playerid, "~r~You have to Explore this first!", 5000, 6); } } } return 0; }