15.06.2010, 03:50
How would i got about adding more cases for this, Like i want a case 3 for a server restart and i want it showing a message
I wanna make it so when the server restarts it sets your last know location.
pawn Код:
new pname[MAX_PLAYER_NAME], string[128 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
new plrIP[128];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
switch(reason)
{
case 0: format(string, sizeof(string), "%s has left the server - %s. (Crashed)", pname, plrIP);
case 1: format(string, sizeof(string), "%s has left the server - %s. (Leaving)", pname, plrIP);
case 2: format(string, sizeof(string), "%s has left the server - %s. (Kicked)", pname, plrIP);
}