death window
#1

so I have the death window working

BUT
I would like it to show when people connects and disconnects


pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
SendDisconnectMessage(playerid, reason);
I get this error
Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc3.pwn(165) : error 017: undefined symbol "SendDisconnectMessage"
Reply
#2

Код:
new pName[24];
new string[128];
new pName2[24];
new string2[128];
public OnPlayerConnect(playerid) 
{
       GetPlayerName(playerid, pName, 24);
       format(string, 128, "%s has joined the server!", pName);
       SendClientMessageToAll(0xFFFFFFF, string);
       return 1;
}
public OnPlayerDisconnect(playerid)
{
      GetPlayerName(playerid, pName2, 24);
      format(string2, 128, "%s has left the server!", pName2);
      SendClientMessageToAll(0xFFFFFFF, string2);
      return 1;
}
Reply
#3

Quote:
Originally Posted by NoahF
Посмотреть сообщение
Код:
new pName[24];
new string[128];
new pName2[24];
new string2[128];
public OnPlayerConnect(playerid) 
{
       GetPlayerName(playerid, pName, 24);
       format(string, 128, "%s has joined the server!", pName);
       SendClientMessageToAll(0xFFFFFFF, string);
       return 1;
}
public OnPlayerDisconnect(playerid)
{
      GetPlayerName(playerid, pName2, 24);
      format(string2, 128, "%s has left the server!", pName2);
      SendClientMessageToAll(0xFFFFFFF, string2);
      return 1;
}
You didn't mind reading? That wasn't what I wanted. I said LIKE THE DEATH WINDOW
Reply
#4

Quote:
Originally Posted by JEkvall95
Посмотреть сообщение
You didn't mind reading? That wasn't what I wanted. I said LIKE THE DEATH WINDOW
Then look up ******'s disconnect/connect icons.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)