24.04.2015, 15:57
This is commonly done visually through textdraws. However, for the server-end you'll need to store information such as the player's current port, etc, and script things they can do according to the information stored. Example:
pawn Код:
enum pPortData
{
pPort,
bool: pInsidePort
}
new PortInformation[MAX_PLAYERS][pPortData];
stock GetPlayerPort(playerid) {
if(PortInformation[playerid][pInsidePort] == true) {
return PortInformation[playerid][pPort];
}
else return 0; // not inside of a port
}
stock ConnectToPort(playerid, port) {
if(port >= 1 && port < 5)
{
PortInformation[playerid][pPort] = port;
PortInformation[playerid][pInsidePort] = true;
return 1;
}
else return 0; // bad port
}