Public feed
#379894
public OnPlayerEnterCheckpoint(playerid)
{
new string[256];
new ownplayer[MAX_PLAYER_NAME];
format(string, sizeof(string), "You can buy the %s for $%d with /buy.", propertyNames[playerCheckpoint[playerid]], propertyValues[playerCheckpoint[playerid]]);
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You will earn $%d regularly.", propertyEarnings[playerCheckpoint[playerid]]);
SendClientMessage(playerid, COLOR_YELLOW, string);
if(propertyOwner[playerCheckpoint[playerid]]<999) {
GetPlayerName(propertyOwner[playerCheckpoint[playerid]], ownplayer, sizeof(ownplayer));
format(string, sizeof(string), "This property is currently owned by %s.", ownplayer);
SendClientMessage(playerid, COLOR_RED, string);
}
}
}