1
General Server Discussion / Re: Players Ax Video, 2010 2nd Part
« on: August 09, 2010, 07:37:46 pm »
Pls MikeX in...

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
public OnPlayerConnect(playerid)
{
new player[100];
GetPlayerName(playerid,player, 24);
format(player, 100, "%s has joined the server.",player);// Player Name
SendClientMessageToAll(0xA52A2AAA, player);// Color
SendClientMessage(playerid,0xA52A2AAA,"Welcome to blabla..... ");// SCM
GameTextForPlayer(playerid,"Welcome to Adrenaline~r~X ~w~server.",5000,5);//GT
ShowPlayerDialog(playerid, dialogid, dialogstyle, "welcoming title", "Welcome\nBlablan\nBlabla", "button1", "button2");// \n = next line
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
new player[100];//name
GetPlayerName(playerid, player, 30);
switch (reason) {
case 0: format(hrac, 100, "%s has left the server.",player);// Reason 1
case 1: format(hrac, 100, "%s has left the server.(Timeout)",player);// Reason 2
case 2: format(hrac, 100, "%s has left the server (Kick/Ban)",player);// Reason 3
}
SendClientMessageToAll(0xA52A2AAA, player);//color
return 1;
}