29.12.2010, 21:52
Ricop 522 ai ^^
Public onplayerdisconnect
em cima so tem o inicio da public nao sei se iso so basta mais no pastebin tem ela toda
Onplayerdisconnect TODA >> http://pastebin.com/AxhyzCCC
malz o duplo post mais pediram 2 publics e ficaria muita coisa ^^
Public onplayerdisconnect
pawn Код:
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 saiu . (Crash)",name);
case 1: format(string,sizeof string,"%s saiu . (Saiu por vontade propria)",name);
case 2: format(string,sizeof string,"%s saiu . (Kick/Ban)",name);
}
SendClientMessageToAll(0x0080FF96,string);
return 1;
}
gActivePlayers[playerid]--;
numplayers--;
PlayerInfo[playerid][pAdjustable] = 1;
PlayerInfo[playerid][pPos_x] = 1654.2203;
PlayerInfo[playerid][pPos_y] = -1656.7523;
PlayerInfo[playerid][pPos_z] = 22.5156;
OnPlayerSave(playerid);
Teste[playerid] = 0;
TakingLesson[playerid] = 0;
Acertos[playerid] = 0;
CPorder[playerid] = 0;
Onplayerdisconnect TODA >> http://pastebin.com/AxhyzCCC
malz o duplo post mais pediram 2 publics e ficaria muita coisa ^^