// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTnew Rendor;public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munkak by ptR\");print(\"--------------------------------------\\n\");return 1;}Rendor = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497,528,599,598,597,596,601,426) { if(strcmp(PlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // EZ nem jó, hogy kell ellenörízni, hogy az adott skinü player ülhet a kocsiba? RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;}
http://sampforum.hu/index.php?topic=26421.0Másold be az error-t.
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTnew Rendor[5];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munkak by ptR\");print(\"--------------------------------------\\n\");Rendor[0] = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor[1] = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[2] = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor[3] = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[4] = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497,528,599,598,597,596,601,426) { if(strcmp(PlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // EZ nem jó, hogy kell ellenörízni, hogy az adott skinü player ülhet a kocsiba? RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;}
C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(13) : error 010: invalid function or declarationC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(26) : warning 206: redundant test: constant expression is non-zeroC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : error 035: argument type mismatch (argument 1)C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(35) : warning 203: symbol is never used: \"Rendor\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>//a szkript elején:new Rendor;//az OnGameModeInit()-en vagy az OnFilterScriptInit()-en belül:Rendor = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;//OnPlayerStateChangepublic OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497, 528, 599, 598, 597, 596, 601, 426) { if(strcmp(SetPlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // ellenõrizzük, hogy a játékos neve az-e, mint akinek a jármûvet készítettük RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;}
A hiba: C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(13) : error 010: invalid function or declarationC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(26) : warning 206: redundant test: constant expression is non-zeroC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : warning 202: number of arguments does not match definitionC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(27) : error 035: argument type mismatch (argument 1)C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\pawno\\zsaru.pwn(35) : warning 203: symbol is never used: \"Rendor\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase Maga a pwn: // This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>//a szkript elején:new Rendor;//az OnGameModeInit()-en vagy az OnFilterScriptInit()-en belül:Rendor = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;//OnPlayerStateChangepublic OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497, 528, 599, 598, 597, 596, 601, 426) { if(strcmp(SetPlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // ellenõrizzük, hogy a játékos neve az-e, mint akinek a jármûvet készítettük RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;} Dupla hozzászólás automatikusan összefûzve. ( 2012. június 20. - 05:58:07 )Nem jó így sem.
http://sampforum.hu/index.php?topic=26421.0Másold be az error-t. Ránézésre látni, hogy az a baja, nem rossz helyre tette az autókatÍgy jó lesz // This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTnew Rendor[5];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munkak by ptR\");print(\"--------------------------------------\\n\");Rendor[0] = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor[1] = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[2] = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor[3] = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[4] = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497,528,599,598,597,596,601,426) { if(strcmp(PlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // EZ nem jó, hogy kell ellenörízni, hogy az adott skinü player ülhet a kocsiba? RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;} Csak megjegyzem, hogy nagyon sok benne a hiba [/quote]Tengerimalac mar leírta neked, idézem.
http://sampforum.hu/index.php?topic=26421.0Másold be az error-t. Ránézésre látni, hogy az a baja, nem rossz helyre tette az autókatÍgy jó lesz // This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTnew Rendor[5];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munkak by ptR\");print(\"--------------------------------------\\n\");Rendor[0] = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor[1] = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[2] = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor[3] = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[4] = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate) { new PlayerName[24]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER) { new Vehicle = GetPlayerVehicleID(playerid); if(Vehicle == 427,497,528,599,598,597,596,601,426) { if(strcmp(PlayerSkin(playerid, 265,267,266,288,280,281,282,283,284,285,286,287,true)){ // EZ nem jó, hogy kell ellenörízni, hogy az adott skinü player ülhet a kocsiba? RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;} Csak megjegyzem, hogy nagyon sok benne a hiba [/quote]Tengerimalac mar leírta neked, idézem. [/quote]így sem jó ezt írja: C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\zs.pwn(55) : warning 206: redundant test: constant expression is non-zeroC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\zs.pwn(56) : error 017: undefined symbol \"PlayerSkin\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
C:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\zs.pwn(55) : warning 206: redundant test: constant expression is non-zeroC:\\Users\\ptR\\Desktop\\San Andreas MultiPlayer Server\\zs.pwn(56) : error 017: undefined symbol \"PlayerSkin\"Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 1 Error.
#include <a_samp>#pragma tabsize 0#if defined FILTERSCRIPTnew Rendor[5];public OnFilterScriptInit(){Rendor[0] = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor[1] = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[2] = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor[3] = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[4] = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;return 1;}#elsepublic OnFilterScriptExit(){return 1;}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate){ new PlayerName[24]; new carid; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); if(newstate == PLAYER_STATE_DRIVER){ new model = GetVehicleModel(carid); if(model == 425 || model == 432 || model == 470 || model == 490 || model == 497 || model == 596 || model == 598 || model == 599 || model == 601 || model == 523 || model == 430 || model == 427) return 1;{ new SkinID = GetPlayerSkin(playerid); if(SkinID == 280 || SkinID == 281 || SkinID == 282 || SkinID == 283 || SkinID == 284 || SkinID == 285 || SkinID == 286 || SkinID == 287) { RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk neki } } } return 1;}
// This is a comment// uncomment the line below if you want to write a filterscript//#define FILTERSCRIPT#include <a_samp>#if defined FILTERSCRIPTnew Rendor[5];public OnFilterScriptInit(){print(\"\\n--------------------------------------\");print(\" Munkak by ptR\");print(\"--------------------------------------\\n\");Rendor[0] = AddStaticVehicleEx(599,618.40002441,-601.40002441,17.29999924,270.00000000,101,1,15); //Police RangerRendor[1] = AddStaticVehicleEx(596,622.20001221,-609.79998779,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[2] = AddStaticVehicleEx(426,636.09997559,-568.59997559,16.20000076,180.00000000,-1,1,15); //PremierRendor[3] = AddStaticVehicleEx(596,626.20001221,-609.70001221,16.89999962,0.00000000,101,1,15); //Police Car (LSPD)Rendor[4] = AddStaticVehicleEx(426,636.09997559,-574.70001221,16.20000076,180.00000000,-1,1,15); //Premier;return 1;}public OnFilterScriptExit(){return 1;}#elsemain(){print(\"\\n----------------------------------\");print(\" Blank Gamemode by your name here\");print(\"----------------------------------\\n\");}#endifpublic OnPlayerCommandText(playerid, cmdtext[]){if (strcmp(\"/rendorfonok\", cmdtext, true, 10) == 0){SetPlayerSkin(playerid, 281);SendClientMessageToAll(0xFF0000FF, \"Egy rendõr szolgálatba állt.\");SendClientMessage (playerid, 0x33AA33AA, \"Sikeresen Szolgálatba álltál!\"); // Kéne alá, hogy nem tudott szolgálatba állni mert nem Rcon ADMIN, a Rendörfönõk, tudjon felvenni rendõrõket.return 1;}return 0;}public OnPlayerStateChange(playerid, newstate, oldstate) { if(newstate == PLAYER_STATE_DRIVER) { switch(GetVehicleModel(GetPlayerVehicleID(playerid))) { case 427,497,528,599,598,597,596,601,426: { switch(GetPlayerSkin(playerid)) { case 265,267,266,288,280,281,282,283,284,285,286,287: return 1; // EZ nem jó, hogy kell ellenörízni, hogy az adott skinü player ülhet a kocsiba? default: { RemovePlayerFromVehicle(playerid); // ha nem õ az, kidobjuk a jármûbõl SendClientMessage(playerid, 0xFF0000FF, \"Ez a jármû a Rendõrség tulajdona!\"); // üzenetet dobunk nek } } } } } return 1;}