#include <a_samp>#include <zcmd>new Text:teleports49; public OnGameModeInit(){teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1);return 1;} forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){new strin[128];format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext);SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin);}return 1;}
tessék: #include <a_samp>#include <zcmd>new Text:teleports49; public OnGameModeInit(){teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1);return 1;} forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){new strin[128];format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext);SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin);}return 1;}
teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1);
forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}forward OnPlayerCommandPerformed(playerid, cmdtext[], success);public OnPlayerCommandPerformed(playerid, cmdtext[], success){ if(!success) { new strin[128]; format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext); SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin); } return 1;}
forward OnPlayerCommandPerformed(playerid, cmdtext[], success);
new Text:teleports49;
I_Dexter[CL]\" post=\"277349\" timestamp=\"1337455000\"]tessék: #include <a_samp>#include <zcmd>new Text:teleports49; public OnGameModeInit(){teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1);return 1;} forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){new strin[128];format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext);SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin);}return 1;} [/quote]OnGamemodeInit alá: teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1); És a return 1 után: forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}forward OnPlayerCommandPerformed(playerid, cmdtext[], success);public OnPlayerCommandPerformed(playerid, cmdtext[], success){ if(!success) { new strin[128]; format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext); SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin); } return 1;} Mert neked lemaradt a forward OnPlayerCommandPerformed(playerid, cmdtext[], success); Szerk.: mod elejére new Text:teleports49; [/quote]És most milyért kellet még 1x leírnod, ha már leírta?
tessék: #include <a_samp>#include <zcmd>new Text:teleports49; public OnGameModeInit(){teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1);return 1;} forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){new strin[128];format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext);SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin);}return 1;} [/quote]OnGamemodeInit alá: teleports49 = TextDrawCreate(153.000000,379.000000,\"Nincs ilyen parancs %s\");TextDrawAlignment(teleports49,0);TextDrawBackgroundColor(teleports49,0x000000ff);TextDrawFont(teleports49,1);TextDrawLetterSize(teleports49,0.299999,1.100000);TextDrawColor(teleports49,0xffffffff);TextDrawSetOutline(teleports49,1);TextDrawSetProportional(teleports49,1);TextDrawSetShadow(teleports49,1); És a return 1 után: forward xxTimer(playerid);public xxTimer(playerid){ TextDrawHideForPlayer(playerid, teleports49); return 1;}forward OnPlayerCommandPerformed(playerid, cmdtext[], success);public OnPlayerCommandPerformed(playerid, cmdtext[], success){ if(!success) { new strin[128]; format(strin, sizeof(strin), \"%s Parancs nem létezik!\", cmdtext); SendClientMessage(playerid,0xFF0606FF, strin); TextDrawShowForPlayer(playerid, teleports49); SetTimerEx(\"xxTimer\",5000,0, \"d\", playerid); PlayerPlaySound(playerid, 1056, 0.0, 0.0, 10.0); TextDrawSetString(teleports49, strin); } return 1;} Mert neked lemaradt a forward OnPlayerCommandPerformed(playerid, cmdtext[], success); Szerk.: mod elejére new Text:teleports49; [/quote]És most milyért kellet még 1x leírnod, ha már leírta?
ez: OnPlayerCommandPerformed ( playerid, cmdtext[], success) alapból benne van a zcmd.inc-be!Itt van:forward OnPlayerCommandReceived(playerid, cmdtext[]); forward OnPlayerCommandPerformed(playerid, cmdtext[], success); Szóval a módba nem kell beleírni...
I_Dexter[CL]\" post=\"277377\" timestamp=\"1337457143\"]ez: OnPlayerCommandPerformed ( playerid, cmdtext[], success) alapból benne van a zcmd.inc-be!Itt van:forward OnPlayerCommandReceived(playerid, cmdtext[]); forward OnPlayerCommandPerformed(playerid, cmdtext[], success); Szóval a módba nem kell beleírni... [/quote]jah jólvan én nem használok zcmd-t....Bocs az offért Üdv: Dexter [/quote]Nem baj csak vigyázz mert a moderátoroknak nem tetszik
ez: OnPlayerCommandPerformed ( playerid, cmdtext[], success) alapból benne van a zcmd.inc-be!Itt van:forward OnPlayerCommandReceived(playerid, cmdtext[]); forward OnPlayerCommandPerformed(playerid, cmdtext[], success); Szóval a módba nem kell beleírni... [/quote]jah jólvan én nem használok zcmd-t....Bocs az offért Üdv: Dexter [/quote]Nem baj csak vigyázz mert a moderátoroknak nem tetszik
#include <a_samp>#include <zcmd>new error;new Text:ErrorText;forward TextOff(playerid);public OnFilterScriptInit(){ErrorText = TextDrawCreate(153.000000,379.000000,\" -- \");TextDrawAlignment(ErrorText, 0);TextDrawBackgroundColor(ErrorText, 0x000000ff);TextDrawFont(ErrorText, 1);TextDrawLetterSize(ErrorText, 0.299999,1.100000);TextDrawColor(ErrorText, 0xffffffff);TextDrawSetOutline(ErrorText, 1);TextDrawSetProportional(ErrorText, 1);TextDrawSetShadow(ErrorText, 1);return 1;}public OnFilterScriptExit(){TextDrawHideForAll(ErrorText);TextDrawDestroy(ErrorText);return 1;}public OnPlayerCommandPerformed(playerid, cmdtext[], success){if(!success){ new String[41]; format(String, sizeof(String), \"~r~%s parancs nem létezik!\", cmdtext); TextDrawSetString(ErrorText, String); TextDrawShowForPlayer(playerid, ErrorText);error = SetTimer(\"TextOff\", 3000, false); }return 1;}public TextOff(playerid) return KillTimer(error), TextDrawHideForPlayer(playerid, ErrorText);