Szerző Téma: rcon duty  (Megtekintve 428 alkalommal)

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
rcon duty
« Dátum: 2013. Március 17. - 20:29:56 »
0 Show voters
Sziasztok!
Csinálna nekem egy olyant valaki hogy /rduty és xy rcon adminszolgálatba lépett! és xy már nincs rconadmin szolgálatban!
cmd-vel
Elõre is köszönöm!!

Nem elérhető SSK

  • 232
    • Profil megtekintése
rcon duty
« Válasz #1 Dátum: 2013. Március 18. - 07:04:44 »
+1 Show voters
#include <a_samp>
#include <zcmd>
#define msg SendClientMessage
#define msgall SendClientMessageToAll
new rduty[MAX_PLAYERS];
CMD:rduty(playerid)
{
new string[128];
new nev[MAX_PLAYER_NAME];
GetPlayerName(playerid,nev,sizeof(nev));
if(!IsPlayerAdmin(playerid)) return msg(playerid,-1,\"Nem vagy RCON admin!\");
if(rduty[playerid] == 0)
{
rduty[playerid] = 1;
format(string,sizeof(string),\"%s RCON adminszolgálatba lépett!\",nev);
msgall(-1,string);
}
else
{
rduty[playerid] = 0;
format(string,sizeof(string),\"%s RCON kilépett az adminszolgálatból!\",nev);
msgall(-1,string);
}
return 1;
}
public OnPlayerConnect(playerid)
{
rduty[playerid] = 0;
return 1;
}
public OnPlayerDisconnect(playerid,reason)
{
rduty[playerid] = 0;
return 1;
}

 
Remélem mûködik.

Nem elérhető pisti525

  • 906
  • One Shot, One Kill
    • Profil megtekintése
rcon duty
« Válasz #2 Dátum: 2013. Március 18. - 07:08:13 »
0 Show voters
kösz ment a +! :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal