Szerző Téma: Egy alapmodot PLS!  (Megtekintve 863 alkalommal)

Nyasgem!

  • Vendég
Egy alapmodot PLS!
« Dátum: 2012. július 30. - 17:11:19 »
0 Show voters
Sziasztok!
Tegnap újra telepítettem a gépem, mert a Win 7 egy nagy ***,
Én hülye olyan ideges voltam, hogy nem mentettem el semmit, csak formáztam le azt csõ :facepalm:
Szóval, nem is pofázok többet, nem tud valaki egy olyan GM-et, ami nagyon alap... tudom ott van a grandlarc de az egy ..... mindegy :D

Egy alapmodot PLS!
« Válasz #1 Dátum: 2012. július 30. - 17:15:33 »
0 Show voters
LVDM?

Nyasgem!

  • Vendég
Egy alapmodot PLS!
« Válasz #2 Dátum: 2012. július 30. - 17:17:57 »
0 Show voters
az egy szar
-.-

Nem elérhető bendor

  • 2949
    • Profil megtekintése
Egy alapmodot PLS!
« Válasz #3 Dátum: 2012. július 30. - 18:19:18 »
0 Show voters
[pawn]
#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"Blank Script\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 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)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
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[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
   // Do something here
   return 1;
}
return 0;
}
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;
}[/pawn]

Egy alapmodot PLS!
« Válasz #4 Dátum: 2012. július 30. - 22:26:58 »
0 Show voters
Idézetet írta: bendor date=1343665158\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"25215\" data-ipsquote-contentclass=\"forums_Topic


#include <a_samp>
#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print(\"\\n--------------------------------------\");
print(\" Blank Filterscript by your name here\");
print(\"--------------------------------------\\n\");
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
#else
main()
{
print(\"\\n----------------------------------\");
print(\" Blank Gamemode by your name here\");
print(\"----------------------------------\\n\");
}
#endif
public OnGameModeInit()
{
// Don\'t use these lines if it\'s a filterscript
SetGameModeText(\"Blank Script\");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 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)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
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[])
{
if (strcmp(\"/mycommand\", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return 0;
}
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;
}

 

na most röhögtem egy jót..  :laugh:


ha alap modot akarsz, akkor vagy a szervermappában található alap modokat kezded el továbbírogatni, vagy keresel hiv. forumon, illetve itt.
kereséssel többet érnél el, mert te tudod, hogy mit is akarsz pontosan.. idõt is spórolnál vele, mert nem várnál napokat ara, hogy mások keresgéljenek.

Nyasgem!

  • Vendég
Egy alapmodot PLS!
« Válasz #5 Dátum: 2012. július 31. - 10:37:25 »
0 Show voters
Kösz a semmit!  :thumbsdown:

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
Egy alapmodot PLS!
« Válasz #6 Dátum: 2012. július 31. - 10:42:17 »
0 Show voters
Akkor írj sajátot és késsz, mindenki így írja a módját!
Ha nem tudol szkriptelni akkor inkább tanúld meg vagy keres ezen a fórumon módokat! Ennyi  :confused:  :nono:

Nyasgem!

  • Vendég
Egy alapmodot PLS!
« Válasz #7 Dátum: 2012. július 31. - 10:56:52 »
0 Show voters
Tudok szkriptelni... És az még mindig \"tudsz\" és nem \"tudol\". :)
Másrészt, én csak egy kibaszott alap modot szerettem volna, amit turbózok, estébé estébé....

Nem elérhető Erik3333

  • 945
  • SMF | phpBB | TS3 | PHP | HTML | CSS | JS | PAWN | JAVA
    • Profil megtekintése
Egy alapmodot PLS!
« Válasz #8 Dátum: 2012. július 31. - 11:06:48 »
+1 Show voters

Nem elérhető JBauer

  • 1407
    • Profil megtekintése
Egy alapmodot PLS!
« Válasz #9 Dátum: 2012. július 31. - 11:09:29 »
+1 Show voters
/*
*Alap GM
*Gyakorlásképpen
*/
 
//=============================[includek]===============================
#include <a_samp>
#include <dini>
#include <dudb>
#include <sscanf2>
#include <zcmd>
//==============================[Frakció id-k]===============================
#define hitman 500
#define fbi 497
#define swat 496
#define katona 495
#define taxi 491
#define riporter 490
#define TEAM_GROOVE 493
#define TEAM_RENDOR 499
#define TEAM_BALLAS 494
#define TEAM_AZTECAS 492
#define TEAM_CIVIL 498
#define TEAM_VAGOS 489
//===============[Dialog id-k]=============
#define ReGiStEr 8
#define LoGiN 9
//================[színek]=================
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BLUE    0x0000FFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_ALLDEPT 0xFF8282AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define piros 0xFF000FF
#define COLOR_OOC 0xE0FFFFAA
#define narancs 0xFF9933AA
#define szurke 0xAFAFAFAA
#define citrom 0xFFFF00AA
#define zold 0x33AA33AA
#define feher 0xFFFFFFAA
#define fekete 0x000000
#define neon 0x00FFFFFF
//==============================[Enumerátorok]============================
enum pInfo
{
admin,
olesek,
halal,
as,
ban,
warn,
vip
}
enum uInfo
{
kokain,
heroin,
marihuana,
material,
muanyag
}
//==============================[Változók]==============================
new string58[24];
new gt[MAX_PLAYERS];
new kaja[MAX_PLAYERS];
new ital[MAX_PLAYERS];
new Info[MAX_PLAYERS][pInfo];
new info[MAX_PLAYERS][uInfo];
new cuff[MAX_PLAYERS];
new rang[MAX_PLAYERS];
new IsLogged[MAX_PLAYERS];
new aduty[MAX_PLAYERS];
new Text:FPS[MAX_PLAYERS];
new DLlast[MAX_PLAYERS] = 0;
new FPS2[MAX_PLAYERS] = 0;
new Text:Textdraw45[MAX_PLAYERS];
new Text:Textdraw46;
new Text:Textdraw47;
new SpeedoTimer;
new str[128];
//==============================[Minden egyéb ami kell]=================
#undef MAX_PLAYERS
#define MAX_PLAYERS 30 // írd át a szervered férõhelyére
#define SendFormatMessage(%1,%2,%3,%4) do{new sendfstring[128];format(sendfstring,128,(%3),%4);SendClientMessage(%1,(%2),sendfstring);}while(FALSE)
#define SendFormatMessageToAll(%1,%2,%3) do{new sendfstring[128];format(sendfstring,128,(%2),%3);SendClientMessageToAll((%1),sendfstring);}while(FALSE)
#pragma unused strtok
#pragma unused ret_memcpy
#pragma tabsize 0
//=============================[Frakció rendszerhez]====================
static gTeam[MAX_PLAYERS];
static gLTeam[MAX_PLAYERS];
//=============================[Funkciókhoz]============================
forward SendAdminMessage(color, string[]);
forward SendHitmanMessage(color, string[]);
forward SendRendorMessage(color, string[]);
forward Speedo();
//==============================[Alap parancsok]=============================
CMD:kajavesz(playerid, params[])
{
if(kaja[playerid] == 1) return SendClientMessage(playerid, piros, \"Már van kajád!\");
{
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, piros, \"Vettél egy kaját 500$-ért!\");
kaja[playerid] = 1;
}
return 1;
}
CMD:kaja(playerid, params[])
{
if(kaja[playerid] == 0) return SendClientMessage(playerid, piros, \"Még nincs kajád, a /kajavesz parancsal vehetsz!\");
{
new Float: Health = GetPlayerHealth(playerid, Health);
SetPlayerHealth(playerid, Health+10);
SendClientMessage(playerid, piros, \"Ettél egy szendvicset, ezért kaptál 10hp-t!\");
}
return 1;
}
CMD:italvesz(playerid, params[])
{
if(ital[playerid] == 1) return SendClientMessage(playerid, piros, \"Már van italod!\");
{
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, piros, \"Vettél egy italt 500$-ért!\");
ital[playerid] = 1;
}
return 1;
}
CMD:inni(playerid, params[])
{
if(ital[playerid] == 0) return SendClientMessage(playerid, piros, \"Még nincsen italod, venni a /italvesz parancsal vehetsz!\");
{
new Float: Arm = GetPlayerArmour(playerid, Arm);
SetPlayerArmour(playerid, Arm+10);
SendClientMessage(playerid, piros, \"Megittad az italodat, ezért kaptál 10 armourt!\");
ital[playerid] = 0;
}
return 1;
}
CMD:drog(playerid, params[])
{
new drog[45];
if(sscanf(params, \"s[45]\",drog)) return SendClientMessage(playerid, piros, \"Használat: /drog [marihuana/kokain/heroin]\");
if(!strcmp(drog, \"marihuana\", true))
{
if(info[playerid][marihuana] < 1) return SendClientMessage(playerid, neon, \"Nincsen nálad marihuana\");
new Drunk = GetPlayerDrunkLevel(playerid);
SetPlayerDrunkLevel(playerid, Drunk+600);
SendClientMessage(playerid, neon, \"Beszívtál..\");
}
if(!strcmp(drog, \"kokain\", true))
{
if(info[playerid][kokain] < 1)  return SendClientMessage(playerid, neon, \"Nincsen nálad kokain.\");
new Drunk = GetPlayerDrunkLevel(playerid);
SetPlayerDrunkLevel(playerid, Drunk+800);
SendClientMessage(playerid, neon, \"Beszívtál..\");
}
if(!strcmp(drog, \"heroin\", true))
{
if(info[playerid][heroin] < 1) return SendClientMessage(playerid, neon, \"Nincsen nálad heroin.\");
new Drunk = GetPlayerDrunkLevel(playerid);
SetPlayerDrunkLevel(playerid, Drunk+1000);
SendClientMessage(playerid, neon, \"Beszívtál..\");
}
return 1;
}
//===================================[Frakció parancsok]=============================
CMD:radio(playerid, params[])
{
if(gLTeam[playerid] == TEAM_CIVIL || gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid,0xFFFFFFFF,\"Hiba: A csapatodnak nincs rádiója!\");
if(isnull(params)) return SendClientMessage(playerid, 0xFFFFFFAA, \"Használat: /radio (üzenet)\");
else {
if(gTeam[playerid] == TEAM_RENDOR && gLTeam[playerid] == TEAM_RENDOR)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_RENDOR || gLTeam == TEAM_RENDOR) {
if(IsPlayerConnected(i)) {
new str45[128];
GetPlayerName(i,str,128);
new uzenet[128];
if(rang == 1) { format(uzenet, 128,\"Kadét %s: %s,vége\",str45,params); }
if(rang == 2) { format(uzenet, 128,\"Õrmester %s: %s,vége\",str45,params); }
if(rang == 3) { format(uzenet, 128,\"Törzsõrmester %s: %s,vége\",str45,params); }
if(rang == 4) { format(uzenet, 128,\"Százados %s: %s,vége\",str45,params); }
if(rang == 5) { format(uzenet, 128,\"Ezredes %s: %s,vége\",str45,params); }
if(rang == 6) { format(uzenet, 128,\"Tábornok %s: %s,vége\",str45,params); }
SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);
}
}
}
}
if(gTeam[playerid] == TEAM_VAGOS && gLTeam[playerid] == TEAM_VAGOS)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_VAGOS || gLTeam == TEAM_VAGOS) {
if(IsPlayerConnected(i)) {
new str46[128];
GetPlayerName(playerid,str,128);
new uzenet[128];
if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str46,params); }
if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str46,params); }
if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str46,params); }
if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str46,params); }
if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str46,params); }
if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str46,params); }
SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);
}
}
}
}
}
if(gTeam[playerid] == TEAM_AZTECAS && gLTeam[playerid] == TEAM_AZTECAS)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_AZTECAS || gLTeam == TEAM_AZTECAS) {
if(IsPlayerConnected(i)) {
new str47[128];
GetPlayerName(playerid,str,128);
new uzenet[250];
if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str47,params); }
if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str47,params); }
if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str47,params); }
if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str47,params); }
if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str47,params); }
if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str47,params); }
SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);
}
}
}
}
if(gTeam[playerid] == TEAM_GROOVE && gLTeam[playerid] == TEAM_GROOVE)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_GROOVE || gLTeam == TEAM_GROOVE) {
if(IsPlayerConnected(i)) {
new str48[250];
GetPlayerName(playerid,str,128);
new uzenet[250];
if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str48,params); }
if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str48,params); }
if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str48,params); }
if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str48,params); }
if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str48,params); }
if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str48,params); }
SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);
}
}
}
}
if(gTeam[playerid] == TEAM_BALLAS && gLTeam[playerid] == TEAM_BALLAS)
{
for(new i=0;i<MAX_PLAYERS;i++) {
if(gTeam == TEAM_BALLAS || gLTeam == TEAM_BALLAS) {
if(IsPlayerConnected(i)) {
new str49[250];
GetPlayerName(playerid,str,128);
new uzenet[250];
if(rang == 1) { format(uzenet, 128,\"Újonc %s: %s,vége\",str49,params); }
if(rang == 2) { format(uzenet, 128,\"Tanuló %s: %s,vége\",str49,params); }
if(rang == 3) { format(uzenet, 128,\"Kezdõ %s: %s,vége\",str49,params); }
if(rang == 4) { format(uzenet, 128,\"Haladó %s: %s,vége\",str49,params); }
if(rang == 5) { format(uzenet, 128,\"Profi %s: %s,vége\",str49,params); }
if(rang == 6) { format(uzenet, 128,\"Vezetõ %s: %s,vége\",str49,params); }
SendClientMessage(i,COLOR_LIGHTBLUE,uzenet);
}
}
}
}
return 1;
}
CMD:felmond(playerid, params[])
{
if(gTeam[playerid] == TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Nincs állásod.\");
gTeam[playerid] = TEAM_CIVIL;
SendClientMessage(playerid, COLOR_RED, \"Felmondtál.\");
return 1;
}
CMD:giverank(playerid, params[])
{
if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");
new id,rangs;
if(sscanf(params , \"ui\" ,id,rangs)) SendClientMessage(playerid, COLOR_RED, \"Használat : /giverank [id] [rang].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");
else if(rangs < 1 || rangs > 6 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Minimum rang: 1 / Maximum: 6!\");
else {
if(gLTeam[playerid] == TEAM_GROOVE)
{
if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
rang[id] = rangs;
if(rang[id] == 1) return SetPlayerSkin(playerid, 105);
if(rang[id] == 2) return SetPlayerSkin(playerid, 105);
if(rang[id] == 3) return SetPlayerSkin(playerid, 106);
if(rang[id] == 4) return SetPlayerSkin(playerid, 106);
if(rang[id] == 5) return SetPlayerSkin(playerid, 107);
if(rang[id] == 6) return SetPlayerSkin(playerid, 107);
SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");
}
if(gLTeam[playerid] == TEAM_BALLAS)
{
if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
rang[id]  = rangs;
if(rang[id] == 1) return SetPlayerSkin(playerid, 102);
if(rang[id] == 2) return SetPlayerSkin(playerid, 102);
if(rang[id] == 3) return SetPlayerSkin(playerid, 103);
if(rang[id] == 4) return SetPlayerSkin(playerid, 103);
if(rang[id] == 5) return SetPlayerSkin(playerid, 104);
if(rang[id] == 6) return SetPlayerSkin(playerid, 104);
SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");
}
if(gLTeam[playerid] == TEAM_AZTECAS)
{
if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
rang[id]  = rangs;
if(rang[id] == 1) return SetPlayerSkin(playerid, 114);
if(rang[id] == 2) return SetPlayerSkin(playerid, 114);
if(rang[id] == 3) return SetPlayerSkin(playerid, 115);
if(rang[id] == 4) return SetPlayerSkin(playerid, 115);
if(rang[id] == 5) return SetPlayerSkin(playerid, 116);
if(rang[id] == 6) return SetPlayerSkin(playerid, 116);
SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");
}
if(gLTeam[playerid] == TEAM_VAGOS)
{
if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
rang[id]  = rangs;
if(rang[id] == 1) return SetPlayerSkin(playerid, 108);
if(rang[id] == 2) return SetPlayerSkin(playerid, 108);
if(rang[id] == 3) return SetPlayerSkin(playerid, 109);
if(rang[id] == 4) return SetPlayerSkin(playerid, 109);
if(rang[id] == 5) return SetPlayerSkin(playerid, 110);
if(rang[id] == 6) return SetPlayerSkin(playerid, 110);
SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");
}
if(gLTeam[playerid] == TEAM_RENDOR)
{
if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Nem állíthatod a rangját!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s új rangot adott: %s. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
rang[id]  = rangs;
if(rang[id] == 1) return SetPlayerSkin(playerid, 280);
if(rang[id] == 2) return SetPlayerSkin(playerid, 281);
if(rang[id] == 3) return SetPlayerSkin(playerid, 282);
if(rang[id] == 4) return SetPlayerSkin(playerid, 283);
if(rang[id] == 5) return SetPlayerSkin(playerid, 288);
if(rang[id] == 6) return SetPlayerSkin(playerid, 285);
SendClientMessage(playerid, COLOR_GREEN, \"Rang megadva.\");
}
}
return 1;
}
CMD:fegyverbe(playerid, params[])
{
if(gLTeam[playerid] == TEAM_GROOVE || gTeam[playerid] == TEAM_GROOVE)
{
GivePlayerWeapon(playerid, 10,200);
GivePlayerWeapon(playerid, 28,200);
GivePlayerWeapon(playerid, 34,200);
SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");
}
if(gLTeam[playerid] == TEAM_BALLAS || gTeam[playerid] == TEAM_BALLAS)
{
GivePlayerWeapon(playerid, 17,200);
GivePlayerWeapon(playerid, 27,200);
GivePlayerWeapon(playerid, 29,200);
SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");
}
if(gLTeam[playerid] == TEAM_AZTECAS || gTeam[playerid] == TEAM_AZTECAS)
{
GivePlayerWeapon(playerid, 34,200);
GivePlayerWeapon(playerid, 5,200);
GivePlayerWeapon(playerid, 30,200);
SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");
}
if(gLTeam[playerid] == TEAM_VAGOS || gTeam[playerid] == TEAM_VAGOS)
{
GivePlayerWeapon(playerid, 34,200);
GivePlayerWeapon(playerid, 5,200);
GivePlayerWeapon(playerid, 30,200);
SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");
}
if(gLTeam[playerid] == TEAM_RENDOR || gTeam[playerid] == TEAM_RENDOR)
{
GivePlayerWeapon(playerid, 3,200);
GivePlayerWeapon(playerid, 24,200);
GivePlayerWeapon(playerid, 31,200);
SendClientMessage(playerid, COLOR_GREEN, \"Felfegyverezve.\");
}
return 1;
}
CMD:inviteleader(playerid, params[])
{
if(Info[playerid][admin] > 5) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");
new id,csapat;
if(sscanf(params , \"ui\" ,id,csapat)) SendClientMessage(playerid, COLOR_RED, \"Használat : /inviteleader [id] [frakcióid].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(csapat < 0 || csapat > 5 ) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Rossz csapat id!\");
else {
gLTeam[id] = csapat;
rang[id] = 6;
SpawnPlayer(id);
SendClientMessage(id,COLOR_GREEN,\"Leader lettél!\");
}
return 1;
}
CMD:uninviteleader(playerid, params[])
{
if(Info[playerid][admin] > 5) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy Admin!\");
new id;
if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /uninviteleader [id].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else {
if(gLTeam[id] != TEAM_GROOVE && gLTeam[id] != TEAM_BALLAS && gLTeam[id] != TEAM_AZTECAS && gLTeam[id] != TEAM_VAGOS && gLTeam[id] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õ nem leader!\");
gLTeam[id] = TEAM_CIVIL;
rang[id] = 0;
SpawnPlayer(id);
SendClientMessage(id,COLOR_GREEN,\"Ki lettél rúgva!\");
}
return 1;
}
CMD:invite(playerid, params[])
{
if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");
new id;
if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /invite [id].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");
else {
if(gLTeam[playerid] == TEAM_GROOVE)
{
if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s felvett téged a Groove bandába. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");
gTeam[id] = TEAM_GROOVE;
rang[id] = 1;
}
if(gLTeam[playerid] == TEAM_BALLAS)
{
if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s felvett téged a Ballas bandába. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");
gTeam[id] = TEAM_BALLAS;
rang[id] = 1;
}
if(gLTeam[playerid] == TEAM_AZTECAS)
{
if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s felvett téged az Aztecas bandába. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");
gTeam[id] = TEAM_AZTECAS;
rang[id] = 1;
}
if(gLTeam[playerid] == TEAM_VAGOS)
{
if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s felvett téged a Vagos bandába. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");
gTeam[id] = TEAM_VAGOS;
rang[id] = 1;
}
if(gLTeam[playerid] == TEAM_RENDOR)
{
if(gTeam[playerid] != TEAM_CIVIL) return SendClientMessage(playerid, COLOR_RED, \"Õt nem veheted fel!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s felvett téged a Rendõr csapatba. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Felvetted.\");
gTeam[id] = TEAM_RENDOR;
rang[id] = 1;
}
}
return 1;
}
CMD:uninvite(playerid, params[])
{
if(gLTeam[playerid] != TEAM_GROOVE && gLTeam[playerid] != TEAM_BALLAS && gLTeam[playerid] != TEAM_AZTECAS && gLTeam[playerid] != TEAM_VAGOS && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Te nem vagy leader!\");
new id;
if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /uninvite [id].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felvenni.\");
else {
if(gLTeam[playerid] == TEAM_GROOVE)
{
if(gTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
if(gLTeam[playerid] != TEAM_GROOVE) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s kirúgott téged a Groove bandából. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");
gTeam[id] = TEAM_CIVIL;
rang[id] = 0;
}
if(gLTeam[playerid] == TEAM_BALLAS)
{
if(gTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
if(gLTeam[playerid] != TEAM_BALLAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s kirúgott téged a Ballas bandából. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");
gTeam[id] = TEAM_CIVIL;
rang[id] = 0;
}
if(gLTeam[playerid] == TEAM_AZTECAS)
{
if(gTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
if(gLTeam[playerid] != TEAM_AZTECAS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s kirúgott téged az Aztecas bandából. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");
gTeam[id] = TEAM_CIVIL;
rang[id] = 0;
}
if(gLTeam[playerid] == TEAM_VAGOS)
{
if(gTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
if(gLTeam[playerid] != TEAM_VAGOS) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s kirúgott téged a Vagos bandából. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");
gTeam[id] = TEAM_CIVIL;
rang[id] = 0;
}
if(gLTeam[playerid] == TEAM_RENDOR)
{
if(gTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
if(gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_RED, \"Õt nem rúghatod ki!\");
new aname[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, aname, sizeof(aname));
format(string, sizeof(string), \"%s kirúgott téged a Rendõr csapatból. \",aname);
SendClientMessage(id, COLOR_GREEN, string);
SendClientMessage(playerid, COLOR_GREEN, \"Kirúgtad.\");
gTeam[id] = TEAM_CIVIL;
rang[id] = 0;
}
}
return 1;
}
CMD:bilincs(playerid, params[])
{
if(gTeam[playerid] != TEAM_RENDOR && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");
new id;
if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /bilincs [id].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magadat nem tudod bilincselni.\");
else {
if(cuff[id] == 0)
{
SendClientMessage(id, COLOR_RED, \"Meg lettél bilincselve.\");
SendClientMessage(playerid, COLOR_RED, \"Megbilincselted.\");
TogglePlayerControllable(id, true);
}
if(cuff[id] == 1)
{
SendClientMessage(id, COLOR_RED, \"Elengedtek.\");
SendClientMessage(playerid, COLOR_RED, \"Elengedted.\");
TogglePlayerControllable(id, false);
}
}
return 1;
}
CMD:fscmds(playerid, params[])
{
SendClientMessage(playerid, COLOR_GREEN, \"FRAKCIÓ FS PARANCSAI:\");
SendClientMessage(playerid, COLOR_GREEN, \"Bandák parancsai: /radio, /fegyverbe\");
SendClientMessage(playerid, COLOR_GREEN, \"Rendõrök parancsai: /rjail, /bilincs, /detain, /leall\");
SendClientMessage(playerid, COLOR_GREEN, \"Leaderek parancsai: /invite, /uninvite, /giverank\");
SendClientMessage(playerid, COLOR_GREEN, \"Adminok parancsai: /inviteleader, /uninviteleader\");
SendClientMessage(playerid, COLOR_GREEN, \"MINDENKI parancsai: /fscmds, /felmond\");
return 1;
}
CMD:detain(playerid, params[])
{
if(gTeam[playerid] != TEAM_RENDOR && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");
new id;
if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /detain [id].\");
else if (id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod berakni.\");
else {
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Nem vagy jármûben!\");
if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");
new tmpcar = GetPlayerVehicleID(playerid);
new Float:x, Float:y, Float:z;
GetPlayerPos(id,x,y,z);
if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");
if(IsPlayerInAnyVehicle(id)) return SendClientMessage(playerid, COLOR_RED, \"Õ jármûben van!\");
PutPlayerInVehicle(id, tmpcar, 1);
SendClientMessage(id, COLOR_GREEN, \"Beszállítottak a kocsiba!\");
}
return 1;
}
 
CMD:rjail(playerid, params[])
{
new id;
if(gTeam[playerid] != TEAM_RENDOR && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr/kommandós.\");
else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /jail [id].\");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod bebörtönözni.\");
else {
if(cuff[id] != 1) return SendClientMessage(id, COLOR_RED, \"A játékos nincs megbilincselve!\");
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
if(!IsPlayerInRangeOfPoint(playerid, 3.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 3 méteres körzetben!\");
SetPlayerPos(id,223.3760,109.9426,999.0156);
SetPlayerInterior(id,10);
SendClientMessage(id,COLOR_RED,\"Egy rendõr börtönbe zárt!\");
}
return 1;
}
CMD:leall(playerid, params[])
{
new id;
if(gTeam[playerid] != TEAM_RENDOR && gLTeam[playerid] != TEAM_RENDOR) return SendClientMessage(playerid, COLOR_GREEN, \"Nem vagy rendõr.\");
else if(sscanf(params , \"u\" ,id)) SendClientMessage(playerid, COLOR_RED, \"Használat : /leall [id].\");
else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid,COLOR_RED, \"Rossz játékos id.\");
else if(id == playerid) return SendClientMessage(playerid,COLOR_RED,\"HIBA: Magad nem tudod felszólítani.\");
else {
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
if(!IsPlayerInRangeOfPoint(playerid, 10.0, x,y,z)) return SendClientMessage(playerid, COLOR_RED, \"HIBA: Játékos nincs 10 méteres körzetben!\");
SendClientMessage(id,COLOR_RED,\"Uram! Itt a rendõrség! Kérjük húzódjon félre!\");
SendClientMessage(playerid,COLOR_GREEN,\"Sikeresen felszólítottad!\");
}
return 1;
}
//====================================[Admin parancsok]===============================
CMD:kill(playerid, params[])
{
if(Info[playerid][admin] >= 100)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, piros, \"Megölve.\");
}
return 1;
}
 
CMD:penzad(playerid, params[])
{
new id, osszeg, ado[MAX_PLAYER_NAME], kapo[MAX_PLAYER_NAME],amess[56],kapomess[56],adomess[56];
if(sscanf(params, \"ui\",id, osszeg)) return SendClientMessage(playerid, neon, \"Használat: /penzad [playerid/névrészlet] [összeg]\");
if(Info[playerid][admin] > 5)
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, piros, \"Rossz játékos id\");
else {
GivePlayerMoney(id,osszeg);
GetPlayerName(playerid, ado,sizeof(ado));
GetPlayerName(id, kapo,sizeof(kapo));
format(kapomess, sizeof(kapomess), \"Kaptál %s-tõl %d FT-t!\",ado,osszeg);
SendClientMessage(id, neon, kapomess);
format(adomess, sizeof(adomess),\"Adtál %s-nek %d FT-t!\",kapo,osszeg);
SendClientMessage(playerid, neon, adomess);
format(amess, sizeof(amess), \".:%s adott %s-nek %d FT-t:.!\",ado,kapo,osszeg);
SendAdminMessage(neon, amess);
printf(amess);
}
return 1;
}
 

CMD:ainfo(playerid, params[])
{
SendClientMessage(playerid, neon, \".: Szerverünkön 10 admin szint található:.\");
SendClientMessage(playerid, neon, \".: Ezek a következõek: 1,2,3,4,5,50,100,150,200,555:.\");
return 1;
}
CMD:adminom(playerid, params[])
{
Info[playerid][admin] = 555;
SendClientMessage(playerid, piros, \"Info[playerid][admin] = 555;\");
return 1;
}
CMD:fegyverad(playerid, params[])
{
new id, fegyver, tolteny, nev[MAX_PLAYER_NAME], st[56], nev2[MAX_PLAYER_NAME], sa[56];
if(sscanf(params, \"uii\",id,fegyver,tolteny)) return SendClientMessage(playerid, piros, \"Használat: /fegyverad [playerid/névrészlet] [fegyverid] [töltény]\");
if(fegyver < 46) return SendClientMessage(playerid, piros, \"Hibás fegyver id.\");
if(fegyver > 1) return SendClientMessage(playerid, piros, \"Hibás fegyver id.\");
if(tolteny > 9999) return SendClientMessage(playerid, piros, \"Azért ne túlozzuk el!\");
if(tolteny < 1) return SendClientMessage(playerid, piros, \"Nem lesz ez sok? -.-\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, piros, \"Nincsen fent a szerveren\");
if(Info[playerid][admin] >= 1) return SendClientMessage(playerid, piros, \"Õ is admin, majd ad magának!\");
else {
GivePlayerWeapon(id, fegyver, tolteny);
GetPlayerName(playerid, nev, sizeof(nev));
format(st, sizeof(st), \"Adtál %s-nak/nek egy fegyvert! (Fegyverid: %d | Töltény: %d)\",nev,fegyver,tolteny);
SendClientMessage(playerid, piros, st);
GetPlayerName(playerid, nev2, sizeof(nev2));
format(sa, sizeof(sa), \"Kaptál %s-tól/tõl egy fegyvert! (Fegyverid: %d | Töltény: %d)\",nev,fegyver,tolteny);
SendClientMessage(id, piros, sa);
}
return 1;
}
CMD:hitman(playerid, params[])
{
new id, nev3[MAX_PLAYER_NAME], ss[56], nev4[MAX_PLAYER_NAME], sd[56];
if(sscanf(params, \"u\",id)) return SendClientMessage(playerid, piros, \"Használat: /hitman [id/névrészlet]\");
if(Info[playerid][admin] < 1) return SendClientMessage(playerid, piros, \"Nem vagy admin.\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, piros, \"Nincsen fent a szerveren.\");
if(Info[playerid][admin] >= 1) return SendClientMessage(playerid, piros, \"Õ is admin, majd õ kinevezi magát!\");
else {
GetPlayerName(playerid, nev3, sizeof(nev3));
format(ss, sizeof(ss), \"%s berakott téged a hitman csapatba! Segítségért: /help\",nev3);
SendClientMessage(id, piros, ss);
GetPlayerName(id, nev4, sizeof(nev4));
format(sd, sizeof(sd), \"Beraktad %s-t a hitman csapatba!\",nev4);
SendClientMessage(playerid, piros, sd);
gt[playerid] = hitman;
GivePlayerWeapon(playerid, 24, 500);
GivePlayerWeapon(playerid, 4, 1);
GivePlayerWeapon(playerid, 31, 1500);
GivePlayerWeapon(playerid, 34, 500);
GivePlayerWeapon(playerid, 46, 1);
}
return 1;
}
CMD:adadmin(playerid, params[])
{
new id, szint, nev6[MAX_PLAYER_NAME], nev7[MAX_PLAYER_NAME], ad[56], aad[64], aaad[64];
if(Info[playerid][admin] == 555) return SendClientMessage(playerid, piros, \"Nem vagy 555-ös admin!\");
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, piros, \"Nem vagy RCON admin!\");
if(sscanf(params, \"ui\", id, szint)) return SendClientMessage(playerid, piros, \"Használat: /adadmin [id/névrészlet] [szint]\");
if(id == playerid) return SendClientMessage(playerid, piros, \"Na nehogy már...\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, piros, \"Nincsen fent a szerveren.\");
else {
GetPlayerName(playerid, nev6, sizeof(nev6));
format(ad, sizeof(ad), \"%s kinevezett %d-es/as szintû adminnak.\",nev6,szint);
SendClientMessage(id, piros, ad);
GetPlayerName(id, nev7, sizeof(nev7));
format(aad, sizeof(aad), \"Kinevezted %s-t %d-es/as szintû adminnak.\",nev7,szint);
SendClientMessage(playerid, piros, aad);
Info[playerid][admin] = szint;
format(aaad, sizeof(aaad), \"<< %s-t kinevezte %s-t %d szintû adminnak. >>\",nev6,nev7,szint);
SendAdminMessage(neon, aaad);
}
return 1;
}
CMD:stats(playerid, params[])
{
new asdasd[128];
format(asdasd, sizeof(asdasd), \"Ölések: %d. Halálok: %d. Pénz: %d. Admin: %d. Warn: %d. Ban: %d. V.I.P: %d.\",Info[playerid][olesek],Info[playerid][halal],Info[playerid][admin],Info[playerid][warn],Info[playerid][ban],Info[playerid][vip]);
SendClientMessage(playerid, neon, asdasd);
return 1;
}
CMD:zsebem(playerid, params[])
{
new asd[128];
format(asd, sizeof(asd), \"Kokain: %d gramm. Heroin: %d gramm. Marihuana: %d gramm. Material: %d darab. Mûanyag: %d darab.\",info[playerid][kokain],info[playerid][heroin],info[playerid][marihuana],info[playerid][material],info[playerid][muanyag]);
SendClientMessage(playerid, neon, asd);
return 1;
}
CMD:gotopoz(playerid, params[])
{
new Float: X, Float: Y, Float: Z;
if(sscanf(params, \"iii\",X,Y,Z)) return SendClientMessage(playerid, 0xFF000FF, \"Használat: /gotopoz [X] [Y] [Z]\");
if(Info[playerid][admin] != 555) return SendClientMessage(playerid, 0xFF000FF, \"Nem vagy 555-ös admin.\");
else {
SetPlayerPos(playerid, X, Y, Z);
SendClientMessage(playerid, 0xFF000FF, \"Teleportálva...\");
}
return 1;
}
CMD:goto(playerid, params[])
{
new id, aneve[MAX_PLAYER_NAME], gneve[MAX_PLAYER_NAME], Float: X, Float: Y, Float: Z, aform[56], aaform[128], gform[128];
if(sscanf(params, \"u\",id)) return SendClientMessage(playerid, COLOR_OOC, \"Használat: /goto [id/névrészlet]\");
if(Info[playerid][admin] != 1) return SendClientMessage(playerid, COLOR_OOC, \"Nem vagy legalább 1-es admin.\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_OOC, \"Nem található az ID.\");
if(id == playerid) return SendClientMessage(playerid, COLOR_OOC, \"Magadhoz? O.o\");
else {
GetPlayerPos(id, X, Y, Z);
SetPlayerPos(playerid, X+2, Y, Z);
GetPlayerName(playerid, aneve, sizeof(aneve));
format(gform, sizeof(gform), \"%s admin odateleportált hozzád.\",aneve);
SendClientMessage(id, neon, gform);
GetPlayerName(id, gneve, sizeof(gneve));
format(aaform, sizeof(aaform), \"Odateleportáltál %s-hez.\",gneve);
SendClientMessage(playerid, piros, aaform);
format(aform, sizeof(aform), \"<< %s admin odateleportált %s-hez. >>\" ,aneve, gneve);
SendAdminMessage(neon, aform);
}
return 1;
}
CMD:get(playerid, params[])
{
new id, aaneve[MAX_PLAYER_NAME], ggneve[MAX_PLAYER_NAME], Float: X, Float: Y, Float: Z, aaform[56], aaaform[128], ggform[128];
if(sscanf(params, \"u\",id)) return SendClientMessage(playerid, COLOR_OOC, \"Használat: /get [id/névrészlet]\");
if(Info[playerid][admin] != 1) return SendClientMessage(playerid, COLOR_OOC, \"Nem vagy legalább 1-es admin.\");
if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_OOC, \"Nem található az ID.\");
if(id == playerid) return SendClientMessage(playerid, COLOR_OOC, \"Magadhoz? O.o\");
else {
GetPlayerPos(playerid, X, Y, Z);
SetPlayerPos(id, X+2, Y, Z);
GetPlayerName(playerid, aaneve, sizeof(aaneve));
format(ggform, sizeof(ggform), \"%s admin odateleportált magához.\",aaneve);
SendClientMessage(id, neon, ggform);
GetPlayerName(id, ggneve, sizeof(ggneve));
format(aaaform, sizeof(aaaform), \"Magadhoz teleportáltad %s-t.\",ggneve);
SendClientMessage(playerid, piros, aaaform);
format(aaform, sizeof(aaform), \"<< %s admin magához teleportálta %s-t. >>\" ,aaneve, ggneve);
SendAdminMessage(neon, aaform);
}
return 1;
}
public OnPlayerConnect(playerid)
{
IsLogged[playerid] = 0;
SendClientMessage(playerid, narancs, \"Üdvözlünk a szerveren.\");
SendClientMessage(playerid, narancs, \"Segítségért: /help. Parancsokért: /cmds. Online adminok: /adminok. Üzenet az adminoknak: /report. Bugot észleltél? Jelentsd: /bug.\");
    new file[128];
    new name[MAX_PLAYER_NAME];
    new neve15[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/user/%s.ini\",name);
if(!fexist(file))
{
format(str, sizeof str, \"Írj be egy jelszót:\");
ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", str, \"Regisztráció\", \"Mégse.\");
dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid));
dini_IntSet(file,\"Leader\",gLTeam[playerid]);
dini_IntSet(file,\"Csapat\",gTeam[playerid]);
dini_IntSet(file,\"Rang\",rang[playerid]);
}
if(fexist(file))
{
format(str, sizeof str, \"Írd be a jelszavad:\");
ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", str, \"Belépés\", \"Mégse.\");
GetPlayerName(playerid, neve15, sizeof(neve15));
format(file,sizeof(file),\"/Sramm/%s.ini\",neve15);
gLTeam[playerid] =  dini_Int(file,\"Leader\");
gTeam[playerid] = dini_Int(file,\"Csapat\");
rang[playerid] = dini_Int(file,\"Rang\");
SetPlayerSkin(playerid, dini_Int(file,\"Skin\"));
}
Info[playerid][as] = 0;
//------------------------------//
for(new i = 0; i < MAX_PLAYERS; i++)
{
FPS = TextDrawCreate(8.000000, 428.000000, \"FPS: 30\");
TextDrawBackgroundColor(FPS, 255);
TextDrawFont(FPS, 3);
TextDrawLetterSize(FPS, 0.480000, 2.000000);
TextDrawColor(FPS, -65281);
TextDrawSetOutline(FPS, 1);
TextDrawSetProportional(FPS, 1);
}
SetTimer(\"FPSUP\",1203,true);
for(new x = 0; x < GetMaxPlayers(); x++)
{
    Textdraw45
  • = TextDrawCreate(54.000000, 325.000000, \"~g~0   ~b~~h~~h~~h~km/h\");

TextDrawBackgroundColor(Textdraw45
  • , 255);

TextDrawFont(Textdraw45
  • , 2);

TextDrawLetterSize(Textdraw45
  • , 0.350000, 1.300000);

TextDrawColor(Textdraw45
  • , -1);

TextDrawSetOutline(Textdraw45
  • , 0);

TextDrawSetProportional(Textdraw45
  • , 1);

TextDrawSetShadow(Textdraw45
  • , 1);

}
Textdraw46 = TextDrawCreate(57.000000, 314.000000, \"~g~Lakatlan terulet!\");
TextDrawBackgroundColor(Textdraw46, 255);
TextDrawFont(Textdraw46, 1);
TextDrawLetterSize(Textdraw46, 0.240000, 1.200000);
TextDrawColor(Textdraw46, -1);
TextDrawSetOutline(Textdraw46, 0);
TextDrawSetProportional(Textdraw46, 1);
TextDrawSetShadow(Textdraw46, 1);
Textdraw47 = TextDrawCreate(57.000000, 314.000000, \"~y~Lakott terulet!\");
TextDrawBackgroundColor(Textdraw47, 255);
TextDrawFont(Textdraw47, 1);
TextDrawLetterSize(Textdraw47, 0.240000, 1.200000);
TextDrawColor(Textdraw47, -1);
TextDrawSetOutline(Textdraw47, 0);
TextDrawSetProportional(Textdraw47, 1);
TextDrawSetShadow(Textdraw47, 1);
SpeedoTimer = SetTimer(\"Speedo\",600,1);
return 1;
}
 
public OnPlayerDisconnect(playerid, reason)
{
    TextDrawDestroy(FPS[playerid]);
    new file[128];
    new name[MAX_PLAYER_NAME];
    new nev5[MAX_PLAYER_NAME], uzi[56];
GetPlayerName(playerid, name, sizeof(name));
format(file,sizeof(file),\"/user/%s.ini\",name);
if(fexist(file))
{
    dini_IntSet(file,\"admin\", Info[playerid][admin]);
    dini_IntSet(file,\"olesek\", Info[playerid][olesek]);
    dini_IntSet(file,\"halal\", Info[playerid][halal]);
    dini_IntSet(file,\"ban\", Info[playerid][ban]);
    dini_IntSet(file,\"warn\", Info[playerid][warn]);
    dini_IntSet(file,\"vip\", Info[playerid][vip]);
dini_IntSet(file,\"kokain\", info[playerid][kokain]);
dini_IntSet(file,\"heroin\", info[playerid][heroin]);
        dini_IntSet(file,\"marihuana\", info[playerid][marihuana]);
        dini_IntSet(file,\"material\", info[playerid][material]);
        dini_IntSet(file,\"muanyag\", info[playerid][muanyag]);
        dini_IntSet(file,\"Skin\",GetPlayerSkin(playerid));
dini_IntSet(file,\"Leader\",gLTeam[playerid]);
dini_IntSet(file,\"Csapat\",gTeam[playerid]);
dini_IntSet(file,\"Rang\",rang[playerid]);
}
IsLogged[playerid] = 0;
GetPlayerName(playerid, nev5, sizeof(nev5));
    format(uzi, sizeof(uzi), \"%s kilépett a szerverrõl! Várjuk vissza!\",nev5);
    SendAdminMessage(zold, uzi);
    for(new x = 0; x < GetMaxPlayers(); x++)TextDrawDestroy(Textdraw45
  • );

TextDrawDestroy(Textdraw46);
TextDrawDestroy(Textdraw47);
KillTimer(SpeedoTimer);
return 1;
}
public OnPlayerSpawn(playerid)
{
    TextDrawShowForPlayer(playerid,FPS[playerid]);
SetPlayerScore(playerid, Info[playerid][olesek]);
if(gLTeam[playerid] == TEAM_GROOVE)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 105);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 105);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 106);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 106);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 107);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 107);
}
if(gLTeam[playerid] == TEAM_BALLAS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 102);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 102);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 103);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 103);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 104);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 104);
}
if(gLTeam[playerid] == TEAM_AZTECAS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 114);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 114);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 115);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 115);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 116);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 116);
}
if(gLTeam[playerid] == TEAM_VAGOS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 108);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 108);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 109);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 109);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 110);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 110);
}
if(gLTeam[playerid] == TEAM_RENDOR)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 280);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 281);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 282);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 283);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 288);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 285);
}
if(gTeam[playerid] == TEAM_GROOVE)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 105);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 105);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 106);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 106);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 107);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 107);
}
if(gTeam[playerid] == TEAM_BALLAS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 102);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 102);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 103);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 103);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 104);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 104);
}
if(gTeam[playerid] == TEAM_AZTECAS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 114);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 114);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 115);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 115);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 116);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 116);
}
if(gTeam[playerid] == TEAM_VAGOS)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 108);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 108);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 109);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 109);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 110);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 110);
}
if(gTeam[playerid] == TEAM_RENDOR)
{
if(rang[playerid] == 1) return SetPlayerSkin(playerid, 280);
if(rang[playerid] == 2) return SetPlayerSkin(playerid, 281);
if(rang[playerid] == 3) return SetPlayerSkin(playerid, 282);
if(rang[playerid] == 4) return SetPlayerSkin(playerid, 283);
if(rang[playerid] == 5) return SetPlayerSkin(playerid, 288);
if(rang[playerid] == 6) return SetPlayerSkin(playerid, 285);
}
return 1;
}
 

public OnPlayerText(playerid, text[])
{
new nev8[MAX_PLAYER_NAME], aassdd[128];
GetPlayerName(playerid, nev8, sizeof(nev8));
format(aassdd, sizeof(aassdd), \"%s: %s\",nev8,text);
SendClientMessageToAll(narancs, aassdd);
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == ReGiStEr)
{
if(response)
{
    new file[128];
    new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   if(strlen(inputtext) == 0)
   {
      format(str, sizeof str, \"Írj be egy jelszót:\");
      ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, \"Regisztráció\", str, \"Regisztráció\", \"Mégse.\");
      return 0;
   }
   format(file,sizeof(file),\"/user/%s.ini\",name);
   if(!fexist(file))
   {
      dini_Create(file);
      dini_IntSet(file,\"Password\", udb_hash(inputtext));
       dini_IntSet(file,\"admin\", 0);
       dini_IntSet(file,\"olesek\", 0);
       dini_IntSet(file,\"halal\", 0);
       dini_IntSet(file,\"ban\", 0);
       dini_IntSet(file,\"warn\", 0);
      dini_IntSet(file,\"vip\", 0);
                dini_IntSet(file,\"kokain\", 0);
                dini_IntSet(file,\"heroin\", 0);
                dini_IntSet(file,\"marihuana\", 0);
                dini_IntSet(file,\"material\", 0);
                dini_IntSet(file,\"muanyag\", 0);
      format(str, sizeof str, \"Írd be a jelszavad:\");
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", str, \"Belép\", \"Mégse.\");
      PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
      GetPlayerName(playerid, name, sizeof(name));
      printf(\"%s sikeresen regisztrált!\", name);
   }
}
}
if(dialogid == LoGiN)
{
if(response)
{
    new file[128];
    new PlayerName[24];
   if(strlen(inputtext) == 0)
   {
       GetPlayerName(playerid, PlayerName, sizeof PlayerName);
       format(str, sizeof str, \"Írd be a jelszavad:\", PlayerName);
      ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, \"Bejelentkezés\", str, \"Belép\", \"Mégse.\");
      return 0;
   }
   new name[MAX_PLAYER_NAME];
   GetPlayerName(playerid, name, sizeof(name));
   format(file,sizeof(file),\"/user/%s.ini\",name);
   if(fexist(file))
   {
       new password = dini_Int(file, \"Password\");
          if(udb_hash(inputtext) != password)
      {
          SendClientMessage(playerid, piros, \"A jelszó hibás.\");
          Kick(playerid);
           GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
           printf(\"%s Nem tudott bejelentkezni!\", name);
      }
      else
      {
         IsLogged[playerid] = 1;
         Info[playerid][admin] = dini_Int(file,\"admin\");
         Info[playerid][olesek] = dini_Int(file,\"olesek\");
         Info[playerid][halal] = dini_Int(file,\"halal\");
         Info[playerid][ban] = dini_Int(file,\"ban\");
         Info[playerid][warn] = dini_Int(file,\"warn\");
          Info[playerid][vip] = dini_Int(file,\"vip\");
          info[playerid][kokain] = dini_Int(file,\"kokain\");
          info[playerid][heroin] = dini_Int(file,\"heroin\");
          info[playerid][marihuana] = dini_Int(file,\"marihuana\");
          info[playerid][material] = dini_Int(file,\"material\");
          info[playerid][muanyag] = dini_Int(file,\"muanyag\");
         SendClientMessage(playerid, zold, \"Sikeres bejelentkezés.\");
         SpawnPlayer(playerid);
         if(Info[playerid][ban] == 1)
         {
             SendClientMessage(playerid, neon, \"Bannolva vagy! Kérj unbant a honlapunkon!\");
             Ban(playerid);
         }
         TogglePlayerSpectating(playerid, 0);
      }
   }
}
}
return 1;
}
public OnPlayerUpdate(playerid)
{
if(aduty[playerid] == 1)
{
    SetPlayerChatBubble(playerid, \"Admin szolgálatban\", neon, 20, 1200);
}
new drunk2 = GetPlayerDrunkLevel(playerid);
            if(drunk2 < 100)
            {
                SetPlayerDrunkLevel(playerid,2000);
            }
            else
            {
                if(DLlast[playerid] != drunk2)
                {
                    new fps = DLlast[playerid] - drunk2;
                    if((fps > 0) && (fps < 200))
                            FPS2[playerid] = fps;
                            DLlast[playerid] = drunk2;
                    }
            }
return 1;
}
public OnGameModeInit()
{
print(\".: Mod betöltve! | Jó játékot!:.\");
return 1;
}
main()
{
print(\"Fut\");
}
public OnGameModeExit()
{
print(\".: Mod leállítva! | További szép napot!:.\");
return 1;
}
//=====================================[Funkciók]====================================
public SendAdminMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
    if(Info[admin] >= 1)
    {
      SendClientMessage(i, color, string);
   }
}
}
}
public SendHitmanMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
   if(gt == hitman)
   {
      SendClientMessage(i, color, string);
   }
}
}
}
public SendRendorMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
   if(gTeam == TEAM_RENDOR && gLTeam == TEAM_RENDOR)
   {
      SendClientMessage(i, color, string);
   }
}
}
}
public Speedo()
{
for(new x = 0; x < GetMaxPlayers(); x++) if(IsPlayerConnected(x)) if(IsPlayerInAnyVehicle(x))
{
    TextDrawHideForPlayer(x,Textdraw45
  • );

    TextDrawShowForPlayer(x,Textdraw45
  • );

    new speed = GetPlayerSpeed(x);
    new string[64];
    if(
   IsPlayerInArea(x,-2826.046, -186.846, -1588.191, 1342.956) ||
        IsPlayerInArea(x,-2242.152, -2545.777, -2043.628, -2242.152) ||
   IsPlayerInArea(x,105.1009, -280.269, 385.3699, 23.35575) ||
   IsPlayerInArea(x,1202.821, 116.7788, 1413.023, 443.7593) ||
   IsPlayerInArea(x,2195.441, -140.1345, 2592.488, 163.4902) ||
   IsPlayerInArea(x,198.5239, -2265.508, 2791.012, -875.8406) ||
   IsPlayerInArea(x,1097.72, 595.5717, 2861.08, 2849.402) ||
   IsPlayerInArea(x,-362.0141, 992.6194, 93.423, 1249.533) ||
   IsPlayerInArea(x,-864.1628, 1401.345, -735.7062, 1599.869) ||
   IsPlayerInArea(x,-303.6248, 2592.488, -140.1345, 2814.368) ||
   IsPlayerInArea(x,-1646.58, 2499.065, -1366.311, 2744.301) ||
   IsPlayerInArea(x,-2604.166, 2195.441, -2148.729, 2487.387)
) {
    TextDrawHideForPlayer(x,Textdraw46);
    TextDrawShowForPlayer(x,Textdraw47);
    if(speed < 10)format(string,sizeof(string),\"~g~%i   ~b~~h~~h~~h~km/h\",speed);
            else if(speed <= 50 && speed >= 10)format(string,sizeof(string),\"~g~%i  ~b~~h~~h~~h~km/h\",speed);
   else if(speed > 50 && speed < 80) format(string,sizeof(string),\"~y~%i  ~b~~h~~h~~h~km/h\",speed);
        else if(speed >= 80 && speed < 100) format(string,sizeof(string),\"~r~%i  ~b~~h~~h~~h~km/h\",speed);
        else if(speed >= 100) format(string,sizeof(string),\"~r~%i ~b~~h~~h~~h~km/h\",speed);
} else {
    TextDrawHideForPlayer(x,Textdraw47);
    TextDrawShowForPlayer(x,Textdraw46);
    if(speed < 10)format(string,sizeof(string),\"~g~%i   ~b~~h~~h~~h~km/h\",speed);
    else if(speed < 100 && speed >= 10)format(string,sizeof(string),\"~g~%i  ~b~~h~~h~~h~km/h\",speed);
   else if(speed >= 100 && speed < 120) format(string,sizeof(string),\"~y~%i ~b~~h~~h~~h~km/h\",speed);
        else if(speed >= 120) format(string,sizeof(string),\"~r~%i   ~b~~h~~h~~h~km/h\",speed);
}
TextDrawSetString(Textdraw45
  • ,string);

} else {
TextDrawHideForPlayer(x,Textdraw45
  • );

TextDrawHideForPlayer(x,Textdraw46);
TextDrawHideForPlayer(x,Textdraw47);
}
return 1;
}
 
stock GetPlayerSpeed(playerid)
{
new speed;
if(!IsPlayerInAnyVehicle(playerid)) return -1;
new Float:VelocityX;
new Float:VelocityY;
new Float:VelocityZ;
GetVehicleVelocity(GetPlayerVehicleID(playerid),VelocityX,VelocityY,VelocityZ);
speed = floatround(floatpower((VelocityX*VelocityX)+(VelocityY*VelocityY)+(VelocityZ*VelocityZ),0.5)*125);
return speed;
}
stock IsPlayerInArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
    new Float:x, Float:y, Float:z;
    GetPlayerPos(playerid, x, y, z);
    if (x > minx && x < maxx && y > miny && y < maxy) return 1;
    return 0;
}
//============================[Timerekkel kapcsolatos dolgok]======================
forward FPSUP();
public FPSUP()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
format(string58,sizeof(string58),\"FPS: %d\",FPS2-1);
TextDrawSetString(FPS,string58);
}
continue;
}
}

 
Ezt én írtam még pár hete, a sebesség meg az FPS mérõ netes.

Nyasgem!

  • Vendég
Egy alapmodot PLS!
« Válasz #10 Dátum: 2012. július 31. - 11:17:10 »
0 Show voters
Ennyi, köszönöm szépen mindkettõtöknek! Megy a +!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal