1Kubad1 18 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 caute jde udelat nak abych videl spravy prez /pm ? Link to comment Share on other sites More sharing options...
0 GoRy 1 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 Z pohledu hráče, nebo admina? Link to comment Share on other sites More sharing options...
0 1Kubad1 18 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 admina Link to comment Share on other sites More sharing options...
0 Guest SpiRinG Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 http://pawno.cz/topic/24899-03-pm-system-rcon-pm-reader/ Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 ked som to daval do pawna čo je tu odkaz ukazuje mi to error? Link to comment Share on other sites More sharing options...
0 1Kubad1 18 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 pls help #include <a_samp> #if defined FILTERSCRIPT #define PlayerPMTarget[MAX_PLAYERS]; #define DIALOGID_PM 123 new PlayerPMTarget[MAX_PLAYERS]; #else #endif public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if (source == CLICK_SOURCE_SCOREBOARD) { PlayerPMTarget[playerid] = clickedplayerid; ShowPlayerDialog(playerid, DIALOGID_PM, DIALOG_STYLE_INPUT,"Poslat PM","Zde napis zpravu:\n","Odeslat","Storno"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); for(new a=0;a>> %s"Jmeno(playerid),Jmeno(PlayerPMTarget[playerid]); SendClientMessage(a,0x0000FFAA,post); format(post,sizeof(post),"> %s <"inputtext); SendClientMessage(a,0xDF0101AA,post); } } PlayerPMTarget[playerid] = INVALID_PLAYER_ID; } return 1; } stock Jmeno(playerid) { new j[255]; GetPlayerName(playerid,j,255); return j; } Link to comment Share on other sites More sharing options...
0 Fabricator 0 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 skus to takto? public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); PlayerPMTarget[playerid] = INVALID_PLAYER_ID; } return 1; } neviem ci ti to pojde ja som to neskusal Link to comment Share on other sites More sharing options...
0 1Kubad1 18 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 nic to nedela // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include <a_samp> #if defined FILTERSCRIPT #define PlayerPMTarget[MAX_PLAYERS]; #define DIALOGID_PM 123 new PlayerPMTarget[MAX_PLAYERS]; public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if (source == CLICK_SOURCE_SCOREBOARD) { PlayerPMTarget[playerid] = clickedplayerid; ShowPlayerDialog(playerid, DIALOGID_PM, DIALOG_STYLE_INPUT,"Poslat PM","Zde napis zpravu:\n","Odeslat","Storno"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); PlayerPMTarget[playerid] = INVALID_PLAYER_ID; } return 1; } stock Jmeno(playerid) { new j[255]; GetPlayerName(playerid,j,255); return j; } #endif Link to comment Share on other sites More sharing options...
0 1Kubad1 18 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 jo to uz vim ale neukazuje mi to kdyz nekdo pise proc mi nejde na serveru ted carmenu ? naky divny #define DIALOGID_PM 892 new PlayerPMTarget[MAX_PLAYERS]; public OnPlayerClickPlayer(playerid, clickedplayerid, source) { if (source == CLICK_SOURCE_SCOREBOARD) { PlayerPMTarget[playerid] = clickedplayerid; ShowPlayerDialog(playerid, DIALOGID_PM, DIALOG_STYLE_INPUT,"Poslat PM","Zde napis zpravu:\n","Odeslat","Storno"); } return 1; } public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) { if (response && dialogid == DIALOGID_PM) { if (!IsPlayerConnected(PlayerPMTarget[playerid])) return SendClientMessage(playerid, 0xE10000AA, "Hrac neni pripojen."); new msg[128]; new msg2[128]; format(msg, 128, "[PM] Od %s : %s", Jmeno(playerid), inputtext); SendClientMessage(PlayerPMTarget[playerid], 0xFFFF00AA, msg); format(msg2, 128, "[PM] Odeslana hraci %s : %s", Jmeno(PlayerPMTarget[playerid]), inputtext); SendClientMessage(playerid, 0xFFFF00AA, msg2); for(new a=0;a>> %s"Jmeno(playerid),Jmeno(PlayerPMTarget[playerid]); SendClientMessage(a,0x0000FFAA,post); format(post,sizeof(post),"> %s <"inputtext); SendClientMessage(a,0xDF0101AA,post); } } PlayerPMTarget[playerid] = INVALID_PLAYER_ID; } return 1; } stock Jmeno(playerid) { new j[255]; GetPlayerName(playerid,j,255); return j; } uz to ukazuje ale misto nicku mi to pise nejaky cisla ok skoro vyreseno jen mi blbne druhy dialog a tam je carmenu jak to spravit ? Link to comment Share on other sites More sharing options...
0 Sparko 0 Odesláno: 31. Březen, 2013 Share Odesláno: 31. Březen, 2013 Pozri si ID Dialogu z carmenu či sa nezhoduje s týmto ak áno tak zmeň jedno z nich nech nemáš rovnaké čísla. (Aspoň myslím, že to je v tom chyba) Link to comment Share on other sites More sharing options...
0 1Kubad1 18 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 jsem zneni a furt se to buguje Link to comment Share on other sites More sharing options...
Dotaz
1Kubad1 18
caute jde udelat nak abych videl spravy prez /pm ?
Link to comment
Share on other sites
10 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now