01.08.2013, 18:51
Hey.. how to make the checkpoint STAY and NOT DISAPPEAR once a player steps into it?
THANKS!
pawn Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
for(new idx=1; idx<MAX_HOUSES; idx++)
{
if(HouseInfo[idx][hCheckpoint] == checkpointid)
{
new string[128];
if(!strcmp("The State", HouseInfo[idx][hOwner], false))
{
format(string, sizeof(string), "This house is for sale, Price: $%d", HouseInfo[idx][hPrice]);
SendClientMessage(playerid, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_WHITE, " /buyhouse to purchase this property.");
}
else
{
format(string, sizeof(string), "You are standing on %s's porch.", HouseInfo[idx][hOwner]);
SendClientMessage(playerid, COLOR_GREEN, string);
}
break;
}
}
return 1;
}
