| daxax a întrebat:

Am un cod de filescript (sa-mp) pentru pleyeri care intra si iasa de pe server dar nu stiu sa-l bag in pawno daca imi poate arata cineva cum se face intr-un video uitati codul:
// *****************************
//Un Script de plictiseala
#define FILTERSCRIPT
#include
#define green 0x33AA33AA
#define red 0xAA3333AA

public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
new plrIP[16];
GetPlayerIp(playerid, plrIP, sizeof(plrIP));
format(string,sizeof string,"%s has joined the server - %s!",pName, plrIP);
SendClientMessageToAll(green, string);
new string1[64], pName1[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName1, MAX_PLAYER_NAME);
format(string1, sizeof string1,"Welcome %s!", pName);
GameTextForPlayer(playerid, string1, 5000, 3);
return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
new
string[64],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
switch(reason)
{
case 0: format(string, sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Timed out)", name);
case 1: format(string, sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Leaving)", name);
case 2: format(string, sizeof string,"%s a parasit serverul Sa:Mp.Ro. (Kicked/Banned)", name);
}
SendClientMessageToAll(red, string);
return 1;
}