Felrakom nektek a [R]endõr [A]cademya rendõr parancsait és még +-t is!
LuxAdmin szükséges! De ki lehet venni,hogy ne csak admin tudja használni.
Segítettek:CannonnParancsok:
/a1 /a2 /a3 /i /p /szl /szonda /fuj /bor /bilincs /levesz /lecsukVégül a letöltés:LetöltésKód:
#include <a_samp>
#include zcmd
#include <sscanf>
#include <ladmin>
new bool:ittas[MAX_PLAYERS];
forward borido(playerid);
#define hiba 0xFF0000AA
CMD:i(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /i [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Kérem álljon félre %s, igazoltatás!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:p(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /p [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} %s papírokat kérnék! {ff0000}[[/jogsimutat %s]]\",name, illeto, name, name);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a1(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a1 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]: {ff0000}%s ! {008a20}Itt a rendõrség, álljon meg!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a2(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a2 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]: {ff0000}%s ! {008a20}Ha nem áll meg kénytelenek leszünk tüzet nyitni!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:a3(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /a3 [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]: {ff0000}%s ! {008a20}Utolsó figyelmeztetés! Ha nem áll meg tüzelünk!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:szl(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /szl [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Itt a rendõrség, szálljon ki/le {ff0000}%s!\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:szonda(playerid, params[])
{
new giveplayerid;
if(sscanf(params, \"u\", giveplayerid)) return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /szonda [playerid]\");
if(giveplayerid == INVALID_PLAYER_ID) return SendClientMessage(playerid, 0xFF0000AA, \"Hiba: Nincs ilyen játékos!\");
if(IsPlayerLuxAdmin(playerid))
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
new illeto[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, illeto, sizeof(illeto));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Kérem fújjon bele a szondába %s! {ff0000}[[/fuj]]\",name, illeto);
SendClientMessageToAll(0x00ff1eAA,string);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
CMD:bor(playerid, params[])
{
ittas[playerid] = true;
SetPlayerSpecialAction(playerid,SPECIAL_ACTION_DRINK_WINE);
SetTimer(\"borido\", 60000*10, false);
SendClientMessage(playerid,0x00ff33AA,\"Úgydöntöttél iszol egy üveg bort!\");
return 1;
}
public borido(playerid)
{
ittas[playerid] = false;
SendClientMessage(playerid,0x00ff33AA,\"Kiürült az alkohol a szervezetedbõl!\");
}
CMD:fuj(playerid, params[])
{
if(ittas[playerid] == true)
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {ff0000}Ittas\", name);
SendClientMessageToAll(0xfff200AA,string);
}
else
{
new name[MAX_PLAYER_NAME],string[200];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof string, \"%s belefújt a szondába. Eredménye: {00ff00}Tiszta\", name);
SendClientMessageToAll(0xfff200AA,string);
}
return 1;
}
CMD:bilincs(playerid, params[])
{
if(IsPlayerLuxAdmin(playerid))
{
new giveplayerid, string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if (sscanf(params, \"u\", giveplayerid)) SendClientMessage(playerid, 0xFF0000FF, \"Használat: /bilincs <playerid>\");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
else{
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Megbilincselte {ff0000}%s-t!\", name, name2);
SendClientMessageToAll(0xB3D5B2AA,string);
TogglePlayerControllable(giveplayerid,0);
}
}
return 1;
}
CMD:levesz(playerid, params[])
{
if(IsPlayerLuxAdmin(playerid))
{
new giveplayerid, string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if (sscanf(params, \"u\", giveplayerid)) SendClientMessage(playerid, 0xFF0000FF, \"Használat: /levesz <playerid>\");
else if (giveplayerid == INVALID_PLAYER_ID) SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
else{
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Levette a bilincset {ff0000}%s{008a20}-ról/rõl.\", name,name2);
SendClientMessageToAll(0xFF0000FF,string);
TogglePlayerControllable(giveplayerid,1);
}
}
return 1;
}
CMD:lecsuk(playerid, params[])
{
if(IsPlayerLuxAdmin(playerid))
{
new giveplayerid, ido, indok[128], string[128], name[MAX_PLAYER_NAME], name2[MAX_PLAYER_NAME];
if(sscanf(params, \"uds\", giveplayerid, ido, indok)) return SendClientMessage(playerid, 0xFF0000FF, \"Használat: /lecsuk [playerid] [perc] [indok]\");
if(!IsPlayerConnected(giveplayerid) || 0 > giveplayerid || giveplayerid > MAX_PLAYERS) return SendClientMessage(playerid, 0xFF0000FF, \"Hiba: Nincs ilyen játékos!\");
GetPlayerName(playerid, name, sizeof(name));
GetPlayerName(giveplayerid, name2, sizeof(name2));
format(string, sizeof string, \"{00bbff}[RENDÕR,%s]:{008a20} Börtönbe zárta %s -t {ff0000}[[Perc: %d]] [[indok: %s]]\", name, name2, ido, indok);
SendClientMessageToAll(0xB3D5B2AA,string);
ido *= 60000;
SetTimerEx(\"Bortonido\",ido,false,\"d\",giveplayerid);
SetPlayerPos(giveplayerid,264.6288,77.5742,1001.0391);
SetPlayerInterior(giveplayerid, 6);
}
else
{
SendClientMessage(playerid, hiba, \"Nem vagy rendõr!\");
}
return 1;
}
forward Bortonido(playerid);
public Bortonido(playerid)
{
SpawnPlayer(playerid);
return 1;
}