0 Members and 1 Guest are viewing this topic.
public OnPlayerConnect(playerid){new player[100];GetPlayerName(playerid,player, 24);format(player, 100, "%s has joined the server.",player);// Player Name SendClientMessageToAll(0xA52A2AAA, player);// ColorSendClientMessage(playerid,0xA52A2AAA,"Welcome to blabla..... ");// SCMGameTextForPlayer(playerid,"Welcome to Adrenaline~r~X ~w~server.",5000,5);//GTShowPlayerDialog(playerid, dialogid, dialogstyle, "welcoming title", "Welcome\nBlablan\nBlabla", "button1", "button2");// \n = next linereturn 1;}
public OnPlayerDisconnect(playerid, reason){new player[100];//nameGetPlayerName(playerid, player, 30);switch (reason) {case 0: format(hrac, 100, "%s has left the server.",player);// Reason 1case 1: format(hrac, 100, "%s has left the server.(Timeout)",player);// Reason 2case 2: format(hrac, 100, "%s has left the server (Kick/Ban)",player);// Reason 3}SendClientMessageToAll(0xA52A2AAA, player);//colorreturn 1;}