Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-04-15, 15:58


SyNTheTiC

Były Pawner






Wiek: 29
Na forum: 4147 dni
Posty: 188
Nick w MP: FatalErroR

Piwa: 743

Respekt: 170,5
Respekt: 170,5Respekt: 170,5

Witam

Pr?bowa?em zrobi? sam skrypt wszed?/wyszed? ale mi si? nie uda?o pr?buje ju? dzisiaj od 2godzin

Czy m?g?by kto? mi zrobi?/wys?a? skrypt w kt?rym b?dzie:


Dla gracza:
Wszed? na server (nick) (id)

Dla admina:
Wszed? na server (nick) (id) (adres ip)


i wyszed?

Prosze pom??cie

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 16:06


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Skoro pr?bowa?e?, to daj ten kod i napisz co Ci w nim nie dzia?a?o.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 16:11


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Poka? kod, kt?ry sam wykmini?e?. Kazania nie ominiesz.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 16:24


SyNTheTiC

Były Pawner






Wiek: 29
Na forum: 4147 dni
Posty: 188
Nick w MP: FatalErroR

Piwa: 743

Respekt: 170,5
Respekt: 170,5Respekt: 170,5

Daje ju?:

http://hostuje.net/file.p...e8eb32d96a01f13


Naprawcie wyszed?

i dor?bcie ip dla admina jak gracz wchodzi na server

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 16:27


Iggy

#admin






Wiek: 26
Na forum: 4596 dni
Posty: 3469
Nick w MP: Iggy

Piwa: 1716

Respekt: 915
Respekt: 915Respekt: 915


   Administrator: Admin ma zawsze rację | REGULAMIN FORUM | REKLAMA/VIP | .
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 16:38


SyNTheTiC

Były Pawner






Wiek: 29
Na forum: 4147 dni
Posty: 188
Nick w MP: FatalErroR

Piwa: 743

Respekt: 170,5
Respekt: 170,5Respekt: 170,5

Z tego samego ?r?d?a ko?ysta?em :)

[ Komentarz dodany przez: Iggy: 2015-04-15, 17:55 ]
xD

Podpis
Wolę Respekt Zamiast Piw :D
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 18:57


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Dodaj kod na pastebin lub tutaj

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 19:20


SyNTheTiC

Były Pawner






Wiek: 29
Na forum: 4147 dni
Posty: 188
Nick w MP: FatalErroR

Piwa: 743

Respekt: 170,5
Respekt: 170,5Respekt: 170,5

Kod:

#include <a_samp>



public OnPlayerConnect(playerid)
{

new text[128], imiegracza[MAX_PLAYER_NAME];
GetPlayerName(playerid, imiegracza, sizeof(imiegracza));

format(text, sizeof(text), "*** Gracz %s (ID %d) wszed? na serwer! ***", imiegracza, playerid);


return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
new text[128], imiegracza[MAX_PLAYER_NAME];
GetPlayerName(playerid, imiegracza, sizeof(imiegracza));
switch(reason)
{
reason 0:
{
format(text, sizeof(text), "*** Gracz %s (ID %d) opu?ci? serwer! (Timeout) ***", imiegracza, playerid);
SendClientMessageToAll(KOLOR, text);
}
reason 1:
{
format(text, sizeof(text), "*** Gracz %s (ID %d) opu?ci? serwer!***", imiegracza, playerid);
SendClientMessageToAll(KOLOR, text);
}
reason 2:
{
format(text, sizeof(text), "*** Gracz %s (ID %d) opu?ci? serwer! (Kick/Ban) ***", imiegracza, playerid);
SendClientMessageToAll(KOLOR, text);
}
}
return 1;
}

public OnPlayerSpawn(playerid)
{
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}

public OnVehicleSpawn(vehicleid)
{
return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}

public OnPlayerText(playerid, text[])
{
return 1;
}



public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
return 1;
}

public OnRconCommand(cmd[])
{
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnObjectMoved(objectid)
{
return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
return 1;
}

public OnPlayerExitedMenu(playerid)
{
return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
return 1;
}

public OnPlayerUpdate(playerid)
{
return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
return 1;
}


Podpis
Wolę Respekt Zamiast Piw :D
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-04-15, 19:36


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
?eby pobra? IP gracza u?ywasz funkcji GetPlayerIp - u?ycie prawie ?e identyczne jak u?ycie GetPlayerName. Nast?pnie musisz na nowo u?y? funkcji format z u?yciem parametru pobranego IP gracza. Aby wy?wietli? wiadomo?? adminom, musisz u?y? p?tli na wszystkich graczy i sprawdzi? kto jest adminem, co? takiego - musisz uzupe?ni? wykropkowane miejsca.

Kod:

new p_ip[16];
GetPlayerIp(...);
format(...);

for(new adminid; adminid != MAX_PLAYERS; adminid++)
{
if(IsPlayerAdmin(...)) SendClientMessage(adminid, ...);
}


Postaw piwo autorowi tego posta
 

 
Tagi: wszedł/wyszedł :: dla :: admina
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » Wszedł/Wyszedł IP dla admina Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku