rEf 53 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 jo ale ja mam server přes Crazyhost.cz víš tak jak pls To je fuk od koho ho máš vole Link to comment Share on other sites More sharing options...
rEf 53 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 a mohl by jsi mi urobiť nějaky mod Lol ještě ti budu robit mod? "lol" to sa mi nechceee som moc línej "lol" speedy je tak hodnej že ti ho udělá aspon 26 000 řádku bb mizim do Las Vegas "lol" Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Speedy™ mohl by jsi mi udělat ?? Link to comment Share on other sites More sharing options...
Vidie 5 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 a mohl by jsi mi urobiť nějaky mod Lol ještě ti budu robit mod? "lol" to sa mi nechceee som moc línej "lol" speedy je tak hodnej že ti ho udělá aspon 26 000 řádku bb mizim do Las Vegas "lol" LOL dobře "lol" Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 Stiahny si ten čo mam v podpise Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 tak diky moc hele kdy ho asi dodělaš jen se ptam Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 už ho amm je good Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 LoL ja som stym modom už skončil pred mesiacom už ho nedorobym nikdy som tu chcel dať aj pwn ale niekto to zamkol . Link to comment Share on other sites More sharing options...
Guest Winki Odesláno: 10. Listopad, 2009 Share Odesláno: 10. Listopad, 2009 tak diky za ten co maš v popise diky moc nemaš skype ,? Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Zdravim, vsechno mi jde v poradku, jenom jestli by mě někdo nepomohl s podmínkou že to hráče nespawne dokud nebude mít /register a pak /login.... Ted se spawnu i bez /loginu Dekuju "santa" Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 do RequestSpawn: if(udb_exists(PlayerName(playerid))) // pokud existuje registrace { if(PLAYERLIST_authed[playerid] == false) return SCM(playerid,"Nesmis hajzle"); // pokud neni přihlašenej } Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Sice jsem chtel aby se musel i registrovat ale (441) : error 017: undefined symbol "udb_exists" (443) : warning 213: tag mismatch (443) : error 035: argument type mismatch (argument 2) public OnPlayerRequestSpawn(playerid) { if(udb_exists(PlayerName(playerid))) // pokud existuje registrace { if(PLAYERLIST_authed[playerid] == false) return SendClientMessage(playerid,"Prihlas se /login heslo"); // pokud neni přihlašenej } Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 V SendClientMessage ti chybí barva Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Toho sem si nevsiml a zbývá C:\Documents and Settings\davidek\Dokumenty\ICQ\244810473\ReceivedFiles\442913573 svarc.dominik\LVmix.pwn(441) : error 017: undefined symbol "udb_exists" C:\Documents and Settings\davidek\Dokumenty\ICQ\244810473\ReceivedFiles\442913573 svarc.dominik\LVmix.pwn(443) : warning 213: tag mismatch Link to comment Share on other sites More sharing options...
癌癌癌 1 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Exists omg ja si nemusim pamatovat všechno navic to maš v tom tutu taky použity ! Link to comment Share on other sites More sharing options...
_Speedy 2 Odesláno: 17. Listopad, 2009 Share Odesláno: 17. Listopad, 2009 Pokial to ešte nemaš tak tu maš stary shitny system ale 100% funkčni : public OnPlayerRequestSpawn(playerid) { TextDrawHideForPlayer(playerid, Text1); TextDrawHideForPlayer(playerid, Text2); if (!PLAYERLIST_authed[playerid]) { if(udb_Exists(PlayerName(playerid))) { SendClientMessage(playerid,COLOR_RED,"[ ! ] Niesi prihlásení, prihlás sa pomocov príkazu /login [heslo]"); }else{ SendClientMessage(playerid,COLOR_RED,"[ ! ] Niesi zaregistrovaní, zaregistruj sa pomocov príkazu /register [heslo]"); } return 0; } return 1; } Uprav si ho ako chceš. Link to comment Share on other sites More sharing options...
Guest Frodo Odesláno: 18. Listopad, 2009 Share Odesláno: 18. Listopad, 2009 Speedy děkuju za pomoc, ale ted sem si to zase celý uplne potamto, ptže když jsem dal tu podmínku tak zase NPC stávkujou "lol" Proste se nespawnou "scratch" Link to comment Share on other sites More sharing options...
Guest Mikibub Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 Nevím jak to ale nejde mi to možná se to řešilo ale mám to takto // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include ////////////////Include//////////////////////////// #include ///to už v mode asi mate tak si to mužete smazat #include #include ///////////////Define´s//////////////////////////// #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOR_SYSTEM 0xEFEFF7AA #pragma tabsize 0; ///////////////New´s////////////////////////////// new PLAYERLIST_authed[MAX_PLAYERS]; ////////////If Define´s///////////////////////////:D public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Utek z vezeni"); AddPlayerClass(0, 278.589,2996.837,1.474,269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { PLAYERLIST_authed[playerid]=false; return false; } public OnPlayerDisconnect(playerid, reason) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; 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 OnPlayerCommandText(playerid, cmdtext[]) { dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet už existuje. Přihlaš se příkazem:'/login heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/register password'"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"[Login]Účet úspěšně vytvořený přihlaš se:'/login heslo'."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet Neexistuje zaregistruj se příkazem: '/register heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/login heslo'"); if (udb_CheckLogin(PlayerName(playerid),params)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"[Login]Successfully authed!"); } return SystemMsg(playerid,"[Login]Přihlášení neuspěšné!"); } dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 return false; } 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; } Tak a háže mi to erory C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(25) : error 017: undefined symbol "playerid" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(26) : error 017: undefined symbol "playerid" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(199) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(233) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(234) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(236) : error 017: undefined symbol "dcmd_register" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(238) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(240) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(240) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(242) : error 017: undefined symbol "params" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(242) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(244) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(244) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(250) : warning 225: unreachable code C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(250) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(251) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(253) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(253) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(255) : error 017: undefined symbol "params" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(255) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(257) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(259) : error 017: undefined symbol "PlayerName" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(263) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(265) : error 017: undefined symbol "SystemMsg" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(268) : warning 225: unreachable code C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(268) : error 017: undefined symbol "dcmd_login" C:\Documents and Settings\Michal\Plocha\Mikes\GTA Clan\GtaServer\samp03asvr_R3_win32\gamemodes\utek1.0.pwn(269) : error 017: undefined symbol "dcmd_register" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Co s tím pls Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 Doporucuju naucit se cist kam co strcit... (To zni blbe ) // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include ////////////////Include//////////////////////////// #include ///to už v mode asi mate tak si to mužete smazat #include #include ///////////////Define´s//////////////////////////// #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOR_SYSTEM 0xEFEFF7AA #pragma tabsize 0; ///////////////New´s////////////////////////////// new PLAYERLIST_authed[MAX_PLAYERS]; ////////////If Define´s///////////////////////////:D public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Utek z vezeni"); AddPlayerClass(0, 278.589,2996.837,1.474,269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { PLAYERLIST_authed[playerid]=false; return false; } public OnPlayerDisconnect(playerid, reason) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; 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 OnPlayerCommandText(playerid, cmdtext[]) { dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 return false; } dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet už existuje. Přihlaš se příkazem:'/login heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/register password'"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"[Login]Účet úspěšně vytvořený přihlaš se:'/login heslo'."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet Neexistuje zaregistruj se příkazem: '/register heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/login heslo'"); if (udb_CheckLogin(PlayerName(playerid),params)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"[Login]Successfully authed!"); } return SystemMsg(playerid,"[Login]Přihlášení neuspěšné!"); } 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; } stock PlayerName(playerid) { new temp[MAX_PLAYER_NAME]; GetPlayerName(playerid,temp,sizeof(temp)); return temp; } stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } Link to comment Share on other sites More sharing options...
Guest D3luX Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 No mas to uplne zle.....chyba ti tam params..atd..nieco ti s tym spravimm.. Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 az na to ze uz sem to udelal... cpal dcmd do OnPlayerCommandText... Link to comment Share on other sites More sharing options...
SweS 0 Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 ja sem stym nemel chyby okrem waringu (225) : warning 203: symbol is never used: "strtok" Radek: Neexistuje Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 ja sem stym nemel chyby okrem waringu (225) : warning 203: symbol is never used: "strtok" Radek: Neexistuje nj, kdyz tam cpes neco co tam bejt nemusi Link to comment Share on other sites More sharing options...
Guest D3luX Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 Sry nevsimol som si to.... Link to comment Share on other sites More sharing options...
zpatecnik 0 Odesláno: 14. Prosinec, 2009 Share Odesláno: 14. Prosinec, 2009 Na tu to mas bez erroru: // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include ////////////////Include//////////////////////////// #include ///to už v mode asi mate tak si to mužete smazat #include #include ///////////////Define´s//////////////////////////// #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOR_SYSTEM 0xEFEFF7AA #pragma tabsize 0; ///////////////New´s////////////////////////////// new PLAYERLIST_authed[MAX_PLAYERS]; ////////////If Define´s///////////////////////////:D public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Utek z vezeni"); AddPlayerClass(0, 278.589,2996.837,1.474,269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { if (PLAYERLIST_authed[playerid]==0){ if (udb_Exists(PlayerName(playerid))){ SystemMsg(playerid,"You have already registered, please /login [password] to login."); } else{ SystemMsg(playerid,"You do not have an account, use /register [password] to register then /login [password] to login."); } return 0; } 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 OnPlayerCommandText(playerid, cmdtext[]) { dcmd(register,8,cmdtext); dcmd(login,5,cmdtext); return 0; } stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } stock PlayerName(playerid) { new name[255]; GetPlayerName(playerid, name, 255); return name; } dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You have already had an account."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You have already created an account, /login [password] to login."); if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /register [password]"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"You have successfully created your account, now use /login [password] to login."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"You have already logined."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"You do not have an account, please /register [password]"); if (strlen(params)==0) return SystemMsg(playerid,"USAGE: /login [password]"); if (udb_CheckLogin(PlayerName(playerid),params)) { SetPlayerScore(playerid,dUserINT(PlayerName(playerid)).("score")); SetPlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"You have successfully logined."); } return SystemMsg(playerid,"Wrong password or nickname!"); } 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; } Neumis cist??? Co sem asi napsal pred par minutama??? : Doporucuju naucit se cist kam co strcit... (To zni blbe ) // This is a comment // uncomment the line below if you want to write a filterscript //#define FILTERSCRIPT #include ////////////////Include//////////////////////////// #include ///to už v mode asi mate tak si to mužete smazat #include #include ///////////////Define´s//////////////////////////// #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1 #define COLOR_SYSTEM 0xEFEFF7AA #pragma tabsize 0; ///////////////New´s////////////////////////////// new PLAYERLIST_authed[MAX_PLAYERS]; ////////////If Define´s///////////////////////////:D public OnGameModeInit() { // Don't use these lines if it's a filterscript SetGameModeText("Utek z vezeni"); AddPlayerClass(0, 278.589,2996.837,1.474,269.1425, 0, 0, 0, 0, 0, 0); return 1; } public OnGameModeExit() { return 1; } public OnPlayerRequestClass(playerid, classid) { SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746); SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746); return 1; } public OnPlayerConnect(playerid) { PLAYERLIST_authed[playerid]=false; return false; } public OnPlayerDisconnect(playerid, reason) { if (PLAYERLIST_authed[playerid]) { dUserSetINT(PlayerName(playerid)).("money",GetPlayerMoney(playerid)); } PLAYERLIST_authed[playerid]=false; 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 OnPlayerCommandText(playerid, cmdtext[]) { dcmd(login,5,cmdtext); // min zanku 5 dcmd(register,8,cmdtext); // max znaku 8 return false; } dcmd_register(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet už existuje. Přihlaš se příkazem:'/login heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/register password'"); if (udb_Create(PlayerName(playerid),params)) return SystemMsg(playerid,"[Login]Účet úspěšně vytvořený přihlaš se:'/login heslo'."); return true; } dcmd_login(playerid,params[]) { if (PLAYERLIST_authed[playerid]) return SystemMsg(playerid,"[Login]Already authed."); if (!udb_Exists(PlayerName(playerid))) return SystemMsg(playerid,"[Login]Účet Neexistuje zaregistruj se příkazem: '/register heslo'."); if (strlen(params)==0) return SystemMsg(playerid,"[Login]Použití: '/login heslo'"); if (udb_CheckLogin(PlayerName(playerid),params)) { GivePlayerMoney(playerid,dUserINT(PlayerName(playerid)).("money")-GetPlayerMoney(playerid)); PLAYERLIST_authed[playerid]=true; return SystemMsg(playerid,"[Login]Successfully authed!"); } return SystemMsg(playerid,"[Login]Přihlášení neuspěšné!"); } 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; } stock PlayerName(playerid) { new temp[MAX_PLAYER_NAME]; GetPlayerName(playerid,temp,sizeof(temp)); return temp; } stock SystemMsg(playerid,msg[]) { if ((IsPlayerConnected(playerid))&&(strlen(msg)>0)) { SendClientMessage(playerid,COLOR_SYSTEM,msg); } return 1; } Link to comment Share on other sites More sharing options...
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