Itt is ezt mondom
nekem akkor volt ez amikor strcmd és zcmd is volt a módban. nem erroros de a parancsok nem jók.
[/quote]
Okés,köszi,akkor berakom egy fs-be,amiben nincs strcmd,és megpróbálom úgy.
SZERK:
Áááá nem jó :\'(
átírtam dcmd-be és ugyan az:
dcmd_kickmember(playerid,params[])
{
new id;
if(sscanf(params,\"u\", id))return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /kickmember [id]\");
GetPlayerName(playerid, Name, sizeof(Name));
if(Member[id] == 1 && Leader[playerid] == 1)
{
format(String, sizeof(String), \"%s kirúgutt a bandából.\",Name);
SendClientMessage(id,0xFF0000FF, String);
SetPlayerColor(id,0xFFFFFFFF);
ResetPlayerWeapons(id);
Leader[id] = 0;
Member[id] = 0;
IsInOrg[id] = 0;
OrgId[id] = 0;
IsLaw[id] = 0;
IsPriv[id] = 0;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
format(String, sizeof(String), \"Kirúgtál egy játékost a bandából.\",Name);
SendClientMessage(playerid,0xFF0000FF, String);
TogglePlayerControllable(id,true);
}
if(Member[id] == 2 && Leader[playerid] == 2)
{
format(String, sizeof(String), \"%s kirúgutt a bandából.\",Name);
SendClientMessage(id,0xFF0000FF, String);
SetPlayerColor(id,0xFFFFFFFF);
ResetPlayerWeapons(id);
Leader[id] = 0;
Member[id] = 0;
IsInOrg[id] = 0;
OrgId[id] = 0;
IsLaw[id] = 0;
IsPriv[id] = 0;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
format(String, sizeof(String), \"Kirúgtál egy játékost a bandából.\",Name);
SendClientMessage(playerid,0xFF0000FF, String);
TogglePlayerControllable(id,true);
}
return 1;
}
dcmd_accept(playerid,params[])
{
new id;
if(IsPlayerConnected(id))
if(sscanf(params,\"u\", id))return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /accept [id]\");
if(IsInOrg[id] == 1) return SendClientMessage(playerid,red,\"A felhasználó már egy szervezet tagja.\");
if(request[id] == 0) return SendClientMessage(playerid,red,\"A felhasználó nem kéri hogy csatlakozzon a szervezethez.\");
if(Leader[playerid] == 1 && Member[id] == 0 && request[id] == 1)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), \"%s csatlakozott a bandába.\",Name);
SendClientMessage(id,green, String);
Leader[id] = 0;
Member[id] = 1;
IsInOrg[id] = 1;
OrgId[id] = 1;
IsLaw[id] = 1;
IsPriv[id] = 0;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
SetPlayerSkin(id, 280);
GivePlayerWeapon(id,24,500);
GivePlayerWeapon(id,3,-1);
GivePlayerWeapon(id,31,5000);
SetPlayerColor(id,SAPD_COLOR);
format(String, sizeof(String), \"A bandád 1 taggal bõvült.\",Name);
SendClientMessage(playerid,green, String);
}
if(IsInOrg[id] == 1) return SendClientMessage(playerid,red,\"A felhasználó már van egy szervezetben.\");
if(request[id] == 0) return SendClientMessage(playerid,red,\"A felhasználó nem kéri hogy csatlakozzon a szervezethez.\");
if(Leader[playerid] == 2 && Member[id] == 0 && request[id] == 2)
{
format(String, sizeof(String), \"%s csatlakozott a bandába.\",Name);
SendClientMessage(id,green, String);
Leader[id] = 0;
Member[id] = 2;
IsInOrg[id] = 1;
OrgId[id] = 2;
IsLaw[id] = 0;
IsPriv[id] = 1;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
SetPlayerSkin(id, 28);
GivePlayerWeapon(id,22,500);
GivePlayerWeapon(id,32,5000);
SetPlayerColor(id,SASR_COLOR);
format(String, sizeof(String), \"A bandád 1 taggal bõvült.\",Name);
SendClientMessage(playerid,green, String);
}
return 1;
}
dcmd_request(playerid,params[])
{
new id;
if(sscanf(params,\"i\", id))return SendClientMessage(playerid, 0xFF0000AA, \"Használat: /request [orgid]\");
GetPlayerName(playerid, Name, sizeof(Name));
if(IsInOrg[playerid] == 1) return SendClientMessage(playerid, red,\" A felhasználó már van egy szervezetben.\");
if(IsRequesting[playerid] == 1) return SendClientMessage(playerid, red,\" Már egyszer kérted a csatlakozást az egyik szervezetbe.\");
if(id == 1)
{
format(String,MAX_PLAYERS,\"* %s szeretne csatlakozni a bandába.\",Name);
SendClientMessageToAll(SAPD_COLOR,String);
IsRequesting[playerid] = 1;
request[playerid] = 1;
return 1;
}
if(id == 2)
{
format(String,MAX_PLAYERS,\"* %s szeretne csatlakozni a bandába.\",Name);
SendClientMessageToAll(SASR_COLOR,String);
IsRequesting[playerid] = 1;
request[playerid] = 2;
return 1;
}
return 1;
}
dcmd_cancelrequest(playerid,params[])
{
if (strlen(params))
if(request[playerid] == 0) return SendClientMessage(playerid,red,\"Senki nem kérte,hogy csatalkozz valhová.\");
GetPlayerName(playerid,pname,sizeof(pname));
if(request[playerid] == 1)
{
format(String,MAX_PLAYERS,\"* %s lemondta a csatlakozási kérelmet.\",pname);
SendClientMessageToAll(0x8F8F8FFF,String);
IsRequesting[playerid] = 0;
request[playerid] = 0;
return 1;
}
if(request[playerid] == 2)
{
format(String,MAX_PLAYERS,\"* %s lemondta a csatlakozási kérelmet..\",pname);
SendClientMessageToAll(0x8F8F8FFF,String);
IsRequesting[playerid] = 0;
request[playerid] = 0;
return 1;
}
return 1;
}
dcmd_setleader(playerid,params[])
{
new id,oleader;
if(!IsPlayerAdmin(playerid))return SendClientMessage(playerid,0xDFDFDFFF,\"Nem vagy admin.\");
if(sscanf(params,\"ui\", id,oleader))return SendClientMessage(playerid, 0xFF0000AA, \"Usage: /setleader [id] [orgID 1 - 9]\");
if(oleader > 9)return SendClientMessage(playerid,red,\"Please type /orgids\");
if(oleader == 1)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), \"%s adott neked leadert.\",Name);
SendClientMessage(id,green, String);
SetPlayerColor(id,SAPD_COLOR);
SetPlayerSkin(id, 282);
GivePlayerWeapon(id,24,500);
GivePlayerWeapon(id,3,-1);
GivePlayerWeapon(id,31,5000);
Leader[id] = 1;
Member[id] = 1;
IsInOrg[id] = 1;
OrgId[id] = 1;
IsLaw[id] = 1;
IsPriv[id] = 0;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
format(String, sizeof(String), \"Te lettél a .... banda leadere.\",Name);
SendClientMessage(playerid,green, String);
}
if(oleader == 2)
{
GetPlayerName(playerid, Name, sizeof(Name));
format(String, sizeof(String), \"%s adott neked leadert.\",Name);
SendClientMessage(id,green, String);
SetPlayerColor(id,SASR_COLOR);
SetPlayerSkin(id, 59);
GivePlayerWeapon(id,22,500);
GivePlayerWeapon(id,32,5000);
Leader[id] = 2;
Member[id] = 2;
IsInOrg[id] = 1;
OrgId[id] = 2;
IsLaw[id] = 0;
IsPriv[id] = 1;
IsGang[id] = 0;
IsRequesting[id] = 0;
request[id] = 0;
format(String, sizeof(String), \"Te lettél a .... banda leadere.\",Name);
SendClientMessage(playerid,green, String);
}
return 1;
}