[PLUGIN] Enter and leave messaje
Pagina 1 din 1
[PLUGIN] Enter and leave messaje
Acest plugin arata un mesaj cand un player intra sau iese de pe server ... pentru inceput va dau codurile pawno in caz ca vreti sa modificati mesajul..
Pentru enter
adaugati doar numele fara extensie..de ex:
Pentru enter
- Cod:
public OnPlayerConnect(playerid)
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s has joined the server.", pName);
SendClientMessageToAll(COLOR_GREY,string);
return 1;
}
- Cod:
public OnPlayerDisconnect(playerid, reason)
{
switch(reason)
{
case 0:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s has left the server.(Timeout)", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
case 1:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s has left the server.(Leaving)", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
case 2:
{
new pName[30], string[256];
GetPlayerName(playerid, pName, 30);
format(string, 256, "%s has left the server.(Kicked)", pName);
SendClientMessageToAll(COLOR_GREY, string);
}
}
return 1;
}
- Cod:
filterscripts
adaugati doar numele fara extensie..de ex:
- Cod:
filterscripts enter exit
Pagina 1 din 1
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum