Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,869
» Latest member: matheuzmobilador
» Forum threads: 2,381
» Forum posts: 12,284

Full Statistics

Online Users
There are currently 191 online users.
» 1 Member(s) | 186 Guest(s)
Google, Bing, Yandex, Applebot, DevonH

Latest Threads
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: DevonH
9 hours ago
» Replies: 11
» Views: 1,163
After School Roleplay - L...
Forum: Advertisements
Last Post: cosminupgaming
10 hours ago
» Replies: 10
» Views: 761
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2026-01-17, 08:36 PM
» Replies: 0
» Views: 27
Can't even view list of s...
Forum: General Discussions
Last Post: thomasgolden
2026-01-16, 04:32 AM
» Replies: 0
» Views: 41
Proyecto SA-MP Medieval: ...
Forum: Discusi?n GTA SA Multijugador
Last Post: harkonstraus0219
2026-01-16, 03:15 AM
» Replies: 0
» Views: 35
[Comunidade] Pawn Hub
Forum: Portuguese/Portugu?s
Last Post: Crazy_ArKzX
2026-01-13, 06:26 PM
» Replies: 0
» Views: 54
The size of the output am...
Forum: Questions and Suggestions
Last Post: wartacho
2026-01-11, 11:56 AM
» Replies: 1
» Views: 241
Why your server's economy...
Forum: General Discussions
Last Post: wartacho
2026-01-11, 11:39 AM
» Replies: 0
» Views: 90
Battlezone 2050 - Circa 2...
Forum: Gamemodes
Last Post: SwisherSweet
2026-01-11, 03:43 AM
» Replies: 1
» Views: 121
World War 3 - TDM - Circa...
Forum: Gamemodes
Last Post: SwisherSweet
2026-01-11, 03:24 AM
» Replies: 0
» Views: 79

 
  Gang Commands Script to a Filter Script
Posted by: Sean17 - 2019-06-02, 03:47 PM - Forum: Pawn Scripting - Replies (4)

Hello, I need help on how to make a gang command script to a filter script.?



I have this group command script from a friend which is this

Code:
new AsLActivity[MAX_PLAYERS];

CMD:aslmembers(playerid,params[])

{

? ?#pragma unused params

? ?new count = 0;

? ?new string[128];

? ?new ChangeColor;

? ?new ASLR[128];

? ?new AsLDuty[128];

? ?if(PlayerInfo[playerid][LoggedIn] == 0) return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");

? ?SendClientMessage(playerid, 0xFF0000AA, " ");

? ?SendClientMessage(playerid, 0x00FFFFAA, "__________ |- Online AsL Members -| __________");

? ?SendClientMessage(playerid, 0xFF0000AA, " ");

? ?for(new i = 0; i < MAX_PLAYERS; i)

? ?{

? ? ? ?if(!IsPlayerConnected(i)) continue;

? ? ? ?if(PlayerInfo[i][LoggedIn] == 0) continue;

? ? ? ?if(PlayerInfo[i][ASL] == 0) continue;



? ? ? ?if(PlayerInfo[i][ASL] == 1) { ASLR = "Recruit"; ChangeColor = 0x858483FF; }

? ? ? ?if(PlayerInfo[i][ASL] == 2) { ASLR = "Initiate"; ChangeColor = 0x864e25FF; }

? ? ? ?if(PlayerInfo[i][ASL] == 3) { ASLR = "Apprentice"; ChangeColor = 0xf6b210FF; }

if(PlayerInfo[i][ASL] == 4) { ASLR = "Footpad"; ChangeColor = 0xf6ee10FF; }

if(PlayerInfo[i][ASL] == 5) { ASLR = "Mercenary"; ChangeColor = 0xc6c434FF; }

if(PlayerInfo[i][ASL] == 6) { ASLR = "Gladiator"; ChangeColor = 0x9be32aFF; }

if(PlayerInfo[i][ASL] == 7) { ASLR = "Warrior"; ChangeColor = 0x26e32fFF; }

if(PlayerInfo[i][ASL] == 8) { ASLR = "Templar"; ChangeColor = 0x26d8e3FF; }

if(PlayerInfo[i][ASL] == 9) { ASLR = "Mentor"; ChangeColor = 0x9526e3FF; }

if(PlayerInfo[i][ASL] == 10) { ASLR = "Leader Assassin"; ChangeColor = 0x266de3FF; }

if(PlayerInfo[i][ASL] == 11) { ASLR = "Master Assassin"; ChangeColor = 0xff0000FF; }



? ? ? ?if(AsLActivity[i] == 0) AsLDuty = "{00FFFF}- Playing!";

if(AsLActivity[i] == 1) AsLDuty = "{FF0000}- AFK";



? ? ? ?format(string, 128, "Rank: %d - %s (Id:%i) | %s %s",PlayerInfo[i][ASL], PlayerName2(i),i,ASLR, AsLDuty);

? ? ? ?SendClientMessage(playerid, ChangeColor, string);

? ? ? ?count;

? ?}

? ?if (count == 0) SendClientMessage(playerid,0xFF0000AA,"No one is online from Assassin's Legion Crew");

? ?SendClientMessage(playerid, 0x00FFFFAA, "___________________________________________");

? ?return 1;

}



CMD:aslafk(playerid,params[]) {

#pragma unused params

if(PlayerInfo[playerid][ASL] >= 1) {

new string[256],kuldoneve[MAX_PLAYER_NAME];

SendClientMessage(playerid,-1,"{33FF33}Type {FF0000}/aslback {33FF33}When You Back.");

GameTextForPlayer(playerid,"~r~ You are now AFK", 6000, 1);

TogglePlayerControllable(playerid, 0);

GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));

if(PlayerInfo[playerid][ASL] == 1)

format(string, sizeof(string), "{858483}[AsL]Recruit {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 2)

format(string, sizeof(string), "{864e25}[AsL]Initiate {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 3)

format(string, sizeof(string), "{f6b210}[AsL]Apprentice {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 4)

format(string, sizeof(string), "{f6ee10}[AsL]Footpad {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 5)

format(string, sizeof(string), "{c6c434}[AsL]Mercenary {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 6)

format(string, sizeof(string), "{9be32a}[AsL]Gladiator {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 7)

format(string, sizeof(string), "{26e32f}[AsL]Warrior {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 8)

format(string, sizeof(string), "{6d8e3}[AsL]Templar {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 9)

format(string, sizeof(string), "{9526e3}[AsL]Mentor {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 10)

format(string, sizeof(string), "{266de3}[AsL]Leader Assassin {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 11)

format(string, sizeof(string), "{ff0000}[AsL]Master Assassin {375FFF}%s Is Now Away From The Keyboard!",kuldoneve, playerid);

SendClientMessageToAll(-1, string);

AsLActivity[playerid] = 1;

? CMDMessageToASL(playerid, "AsLAfk");

} else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be AsL Member to use this command", "OK", "Cancel");

return 1;}



CMD:aslback(playerid,params[]) {

#pragma unused params

if(PlayerInfo[playerid][ASL] >= 1) {

new string[256],kuldoneve[MAX_PLAYER_NAME];

GameTextForPlayer(playerid,"~b~ Welcome Back", 6000, 1);

TogglePlayerControllable(playerid, 1);

GetPlayerName(playerid, kuldoneve, sizeof(kuldoneve));

if(PlayerInfo[playerid][ASL] == 1)

format(string, sizeof(string), "{858483}[AsL]Recruit {375FFF}%s Now Back!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 2)

format(string, sizeof(string), "{864e25}[AsL]Initiate {375FFF}%s Now Back!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 3)

format(string, sizeof(string), "{f6b210}[AsL]Apprentice {375FFF}%s Now Back!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 4)

format(string, sizeof(string), "{f6ee10}[AsL]Footpad {375FFF}%s Now Back!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 5)

format(string, sizeof(string), "{c6c434}[AsL]Mercenary {375FFF}%s Now Back!",kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 6)

format(string, sizeof(string), "{9be32a}[AsL]Gladiator {375FFF}%s Now Back!", kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 7)

format(string, sizeof(string), "{26e32f}[AsL]Warrior {375FFF}%s Now Back!", kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 8)

format(string, sizeof(string), "{6d8e3}[AsL]Templar {375FFF}%s Now Back!", kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 9)

format(string, sizeof(string), "{9526e3}[AsL]Mentor {375FFF}%s Now Back!", kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 10)

format(string, sizeof(string), "{266de3}[AsL]Leader Assassin {375FFF}%s Now Back!", kuldoneve, playerid);

if(PlayerInfo[playerid][ASL] == 11)

format(string, sizeof(string), "{ff0000}[AsL]Master Assassin {375FFF}%s Now Back!", kuldoneve, playerid);

SendClientMessageToAll(-1, string);

AsLActivity[playerid] = 0;

? CMDMessageToASL(playerid, "AsLBack");

} else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX, "ERROR", "You need to be AsL Member to use this command", "OK", "Cancel");

return 1;}



CMD:aslsay(playerid,params[]) {

#pragma unused params

if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /aslsay [text]");

if(PlayerInfo[playerid][ASL] == 1) {

new string[128]; format(string, sizeof(string), "***[AsL]Recruit (Rank:1) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 2) {

new string[128]; format(string, sizeof(string), "***[AsL]Initiate (Rank:2) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 3) {

new string[128]; format(string, sizeof(string), "***[AsL]Apprentice (Rank:3) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 4) {

new string[128]; format(string, sizeof(string), "***[AsL]Footpad (Rank:4) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 5) {

new string[128]; format(string, sizeof(string), "***[AsL]Mercenary (Rank:5) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 6) {

new string[128]; format(string, sizeof(string), "***[AsL]Gladiator (Rank:6) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 7) {

new string[128]; format(string, sizeof(string), "***[AsL]Warrior (Rank:7) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 8) {

new string[128]; format(string, sizeof(string), "***[AsL]Templar (Rank:8) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 9) {

new string[128]; format(string, sizeof(string), "***[AsL]Mentor (Rank:9) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else if(PlayerInfo[playerid][ASL] == 10) {

new string[128]; format(string, sizeof(string), "***[AsL]Leader Assassin (Rank:10) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

} else if(PlayerInfo[playerid][ASL] == 11) {

new string[128]; format(string, sizeof(string), "***[AsL]Master Assassin (Rank:11) %s: {00FF00}%s", PlayerName2(playerid), params[0] );

return SendClientMessageToAll(0x375FFFAA,string);

? ?} else return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ERROR","You need to be a AsL Member to use this command","Okay","Cancel");

}



CMD:settempasl(playerid,params[]) {

? ? ? ?if(PlayerInfo[playerid][LoggedIn] == 1) {

? ? ? ?if(PlayerInfo[playerid][ASL] >= 9 || IsPlayerAdmin(playerid)) {

? ? ? ? ? ? ? ? ? ? ? ?new tmp[128], tmp2[128], Index; ? ? ? ? ? ? tmp = strtok(params,Index), tmp2 = strtok(params,Index);

? ? ? ? ? ? ? ? ? ? ? ?if(isnull(tmp) || isnull(tmp2)) return SendClientMessage(playerid, red, "USAGE: /settempasl [playerid] [level]");

? ? ? ? ? ? ? ? ? ? ? ?new player1, level, string[128];

? ? ? ? ? ? ? ? ? ? ? ?player1 = strval(tmp);

? ? ? ? ? ? ? ? ? ? ? ?level = strval(tmp2);



? ? ? ? ? ? ? ? ? ? ? ?if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {

? ? ? ? ? ? ? ? ? ? ? ?if(PlayerInfo[player1][LoggedIn] == 1) {

? ? ? ? ? ? ? ? ? ? ? ?if(level > 11 ) return SendClientMessage(playerid,red,"ERROR: Incorrect Rank");

? ? ? ? ? ? ? ? ? ? ? ?if(level == PlayerInfo[player1][ASL]) return SendClientMessage(playerid,red,"ERROR: Player is already this Rank");

? ? ? ? ? ? ? ? ? ? ? ?CMDMessageToASL(playerid,"SETTEMPASL");

? ? ? ? ? ? ? ? ? ? ? ?new year,month,day; getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);



? ? ? ? ? ? ? ? ? ? ? ?if(level > 0) format(string,sizeof(string),"|- AsL Leader %s has Temporarily set you AsL Rank Status | Rank: %d - %s -|", pName(playerid), level);

? ? ? ? ? ? ? ? ? ? ? ?else format(string,sizeof(string),"|- AsL Leader %s has temporarily set you to Player Status | Rank: %d -|", pName(playerid), level);

? ? ? ? ? ? ? ? ? ? ? ?SendClientMessage(player1,blue,string);



? ? ? ? ? ? ? ? ? ? ? ?if(level > PlayerInfo[player1][ASL]) GameTextForPlayer(player1,"ASL RANK Promoted", 2000, 3);

? ? ? ? ? ? ? ? ? ? ? ?else GameTextForPlayer(player1,"ASL RANK Demoted", 2000, 3);



? ? ? ? ? ? ? ? ? ? ? ?format(string,sizeof(string),"|- You have given %s Temp ASL Rank %d on '%d/%d/%d' at '%d:%d:%d' -|", pName(player1), level, day, month, year, hour, minute, second); SendClientMessage(playerid,blue,string);

? ? ? ? ? ? ? ? ? ? ? ?format(string,sizeof(string),"Administrator %s has made %s temp ASL Rank %d on %d/%d/%d at %d:%d:%d",pName(playerid), pName(player1), level, day, month, year, hour, minute, second);

? ? ? ? ? ? ? ? ? ? ? ?SaveToFile("TempAdminLog",string);

? ? ? ? ? ? ? ? ? ? ? ?PlayerInfo[player1][ASL] = level;

? ? ? ? ? ? ? ? ? ? ? ?return PlayerPlaySound(player1,1057,0.0,0.0,0.0);

? ? ? ? ? ? ? ? ? ? ? ?} else return SendClientMessage(playerid,red,"ERROR: Player must be registered and logged in to be admin");

? ? ? ? ? ? ? ? ? ? ? ?} else return SendClientMessage(playerid, red, "Player is not connected");

? ? ? ? ? ? ? ?} else return SendClientMessage(playerid,red,"Error:You need to be AsL rank 9 to use this command");

? ? ? ?} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");

}



CMD:aslm(playerid, params[]) {

new string[128];

if(PlayerInfo[playerid][ASL] < 9) return SendClientMessage(playerid,red,"ERROR: You need to be AsL Managament to use this command");

if(isnull(params)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /aslm [text]"); {

if(PlayerInfo[playerid][ASL] == 11)

format(string, sizeof(string), "{FF0000}[AsL Manager] - {FF0000}Master Assassin %s: {00FFFF}%s", PlayerName2(playerid), params[0] );

if(PlayerInfo[playerid][ASL] == 10)

format(string, sizeof(string), "{FF0000}[AsL Manager] - {FF0000}Leader Assassin %s: {00FFFF}%s", PlayerName2(playerid), params[0] );

if(PlayerInfo[playerid][ASL] == 9)

format(string, sizeof(string), "{FF0000}[AsL Manager] - {FF0000}Mentor %s: {00FFFF}%s", PlayerName2(playerid), params[0] );

for(new i, j = GetMaxPlayers(); i < j; i)

{

? ?if(!IsPlayerConnected(i)) continue;

? ? if(PlayerInfo[i][ASL] < 9) continue;

? ? SendClientMessage(i, -1, string);

}

}

return 1;

}





CMD:asl(playerid,params[]) {

? ?#pragma unused params

if(PlayerInfo[playerid][LoggedIn] == 1) {

? if(PlayerInfo[playerid][ASL] >= 1) {

? ? ? ?new string[128];

? ?if(PlayerInfo[playerid][ASL] == 11)

? ?format(string, sizeof(string), "{ff0000}[AsL - Master Assasin]{ff0000}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 10)

? ?format(string, sizeof(string), "{266de3}[AsL - Leader Assasin]{266de3}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 9)

? ?format(string, sizeof(string), "{9526e3}[AsL - Mentor]{9526e3}%s: %ss", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 8)

? ?format(string, sizeof(string), "{26d8e3}[AsL - Templar]{26d8e3}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 7)

? ?format(string, sizeof(string), "{26e32f}[AsL - Warrior]{26e32f}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 6)

? ?format(string, sizeof(string), "{9be32a}[AsL - Gladiator]{9be32a}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 5)

? ?format(string, sizeof(string), "{c6c434}[AsL - Mercenary]{c6c434}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 4)

? ?format(string, sizeof(string), "{f6ee10}[AsL - FootPad]{f6ee10}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 3)

? ?format(string, sizeof(string), "{f6b210}[AsL - Apprentice]{f6b210}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 2)

? ?format(string, sizeof(string), "{864e25}[AsL - Initiate]{864e25}%s: %s", PlayerName2(playerid), params[0] );

? ?if(PlayerInfo[playerid][ASL] == 1)

? ?format(string, sizeof(string), "{858483}[AsL - Recruit]|-%s-|{858483}%s: %s", PlayerName2(playerid), params[0] );

? ? ? ?MessageToASL(blue,string);

? ?} else return ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"{17FA02}Assassin's Leagion", "You need to be higher AsL Level to use this command", "OK", "");

? ?} else return SendClientMessage(playerid,0xFF0000AA,"ERROR: You need to be Logged in to use this command");

? ?return 1;

}

CMD:osetasl(playerid,params[])

{

? ?if(PlayerInfo[playerid][ASL] < 9 ) return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"ERROR","You need to be  level AsL Member to use this command","OK","");

{

new file[256],string[120];

? ?new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);

? ?if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /osetasl [name] [level]");

? ?if(isnull(tmp2)) return SendClientMessage(playerid, red, "ERROR: You must input a level");

? ?if(strval(tmp2) > 11) return SendClientMessage(playerid, red, "ERROR: Max AsL Rank is 12");

? ?format(file,sizeof(file),"/ladmin/users/%s.sav",udb_encode(tmp));

? ?if(!fexist(file)) return SendClientMessage(playerid, red, "ERROR: that account don't even exist!");

? ?dini_Set(file,"ASL",tmp2);

? ?new year,month,day; ? getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);

? ?format(string,sizeof(string),"You have set %s's AsL level to %s on %d/%d/%d at %d:%d:%d",tmp,tmp2 ,day, month, year, hour, minute, second );

? ?SendClientMessage(playerid,0x00FFFFAA,string);

? ?CMDMessageToASL(playerid, "OSETASL");

? ?}

? ?return 1;

}



CMD:setasl(playerid,params[]) {

if(PlayerInfo[playerid][LoggedIn] == 1) {

if(PlayerInfo[playerid][ASL] >= 9 || IsPlayerAdmin(playerid)) {

? ?new tmp[128], tmp2[128], Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);

? ?if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setasl [playerid] [Rank]");

? ? new player1, level, playername[MAX_PLAYER_NAME], adminname[MAX_PLAYER_NAME], string[128];

player1 = strval(tmp);

if(isnull(tmp2)) return SendClientMessage(playerid, red, "USAGE: /setasl [playerid] [Rank]");

level = strval(tmp2);



if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID) {

if(PlayerInfo[player1][LoggedIn] == 1) {

if(level > 11 ) return SendClientMessage(playerid,red,"ERROR: Incorrect Rank");

if(level == PlayerInfo[player1][ASL]) return SendClientMessage(playerid,red,"ERROR: Player is already this Rank");

? ? ? MessageToAdmins(playerid,"SETASL"); CMDMessageToASL(playerid, "SETASL");

GetPlayerName(player1, playername, sizeof(playername)); GetPlayerName(playerid, adminname, sizeof(adminname));

? ? ? new year,month,day; ? getdate(year, month, day); new hour,minute,second; gettime(hour,minute,second);



if(level > 0) format(string,sizeof(string),"|- ASL leader %s has set you to AsL Member Rank Status | Rank: %d - %s -|",adminname, level);

else format(string,sizeof(string),"|- ASL leader %s has set you to AsL Member Rank Status | Rank: %d -|",adminname, level);

SendClientMessage(player1,blue,string);



if(level > PlayerInfo[player1][ASL]) GameTextForPlayer(player1,"~g~ASL Rank Promoted", 2000, 3);

else GameTextForPlayer(player1,"~g~ASL Rank Demoted", 2000, 3);



format(string,sizeof(string),"You have made %s Rank %d on %d/%d/%d at %d:%d:%d", playername, level, day, month, year, hour, minute, second); SendClientMessage(playerid,blue,string);

format(string,sizeof(string),"ASL leader %s has made %s Rank %d on %d/%d/%d at %d:%d:%d",adminname, playername, level, day, month, year, hour, minute, second);

SaveToFile("ASLMembersLog",string);

dUserSetINT(PlayerName2(player1)).("ASL",(level));

PlayerInfo[player1][ASL] = level;

return PlayerPlaySound(player1,1057,0.0,0.0,0.0);

} else return SendClientMessage(playerid,red,"ERROR: Player must be registered and logged in to be AsL Member");

} else return SendClientMessage(playerid, red, "Player is not connected");

} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");

} else return SendClientMessage(playerid,red,"ERROR: You must be logged in to use this commands");

}

CMDMessageToASL(playerid,command[])

{

new string[128];

GetPlayerName(playerid,string,sizeof(string));

format(string,sizeof(string),"{47FFBC}[AsL Member] {00FF00}'%s' {47FFBC}(Rank: {00FF00}%d{47FFBC}) | Command: {00FF00}%s",string,PlayerInfo[playerid][ASL],command);

MessageToASL(-1,string);

return 1;

}



forward MessageToASL(color,const string[]);

public MessageToASL(color,const string[])

{

for(new i = 0; i < MAX_PLAYERS; i)

{

if(IsPlayerConnected(i) == 1)

if(PlayerInfo[i][ASL] >= 1) {

if(PlayerInfo[i][LoggedIn] == 1) {

SendClientMessage(i, color, string); }

}

}

return 1;

}





and when I tried placing it to a filter script I have so many errors

Code:
C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(112) : error 017: undefined symbol "ServerData"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(114) : error 017: undefined symbol "PlayerData"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(114) : error 009: invalid array size (negative, zero or out of bounds)

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(172) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(256) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(259) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(262) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(265) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(268) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(271) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(274) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(277) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(280) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(283) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(286) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(294) : error 017: undefined symbol "strtok"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(294) : error 033: array must be indexed (variable "tmp2")

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(307) : error 017: undefined symbol "pName"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(308) : error 017: undefined symbol "pName"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(314) : error 017: undefined symbol "pName"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(315) : error 017: undefined symbol "pName"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(316) : error 017: undefined symbol "SaveToFile"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(330) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(332) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(334) : error 017: undefined symbol "PlayerName2"

C:\Users\JACINTO\Downloads\Sean17\Script\Attack and Defend\filterscripts\groups.pwn(352) : error 017: undefined symbol "PlayerName2"



Compilation aborted.



Pawn compiler 3.10.4 Copyright (c) 1997-2006, ITB CompuPhase





26 Errors.



Please help me compile this, I'l really new and willing to learn



Here's my full filterscript if ever you guys need this

https://pastebin.com/FiqyXS5E


  Criticize me! - Scripting video
Posted by: Cubie - 2019-06-01, 01:57 PM - Forum: Videos and Screenshots - No Replies

You can always learn so let me know what you think!



[Video: https://youtu.be/QN1GKEAUfnk]


  [Showcase/Mapp] Warehouse
Posted by: Apex - 2019-06-01, 02:05 AM - Forum: Videos and Screenshots - Replies (2)

I'm Concorde#0687 on discord.



[Image: sa-mp-000.png]

[Image: sa-mp-001.png]

[Image: sa-mp-002.png]

[Image: sa-mp-003.png]

[Image: sa-mp-004.png]

[Image: sa-mp-005.png]

[Image: sa-mp-006.png]

[Image: sa-mp-007.png]

[Image: sa-mp-008.png]

[Image: sa-mp-009.png]





In my gta i just have tymeic and skygfx modified.


[Image: sa-mp-010.png]

[Image: sa-mp-011.png]

[Image: sa-mp-012.png]

[Image: sa-mp-013.png]

[Image: sa-mp-014.png]

[Image: sa-mp-015.png]


  Get away from those single file gamemodes
Posted by: Double-O-Seven - 2019-05-31, 06:48 PM - Forum: Questions and Suggestions - Replies (11)

I just check out Github and saw that even the 3 example gamemodes are single files. I think you should lead as an example and implement examples in a modularized manner, no matter how small the gamemode. I think if SAMPs example had been more modularized from the beginning we wouldn?t have as many 60k line single file?abominations as we have today.


  Plugin failed to load
Posted by: Hype - 2019-05-31, 02:07 PM - Forum: Support - Replies (2)



I'm trying to load compiled GDK map in plugin but it fails to load:

1. I followed all steps correctly, gamemode loads

2. I compiled plugin in x64 instead of x86 since I don't see option to compile it in x86.

3. I have all MS bullshit .dlls for server to run this plugin




My IDE is Microsoft Visual Studio.



There are no more options to choose.

https://imgur.com/a/JGQJQvH


  sampctl crashes
Posted by: 6cadilab9 - 2019-05-31, 08:37 AM - Forum: Support - Replies (7)

Type: Server

Operating System:?Ubuntu 16.04 desktop

Server Version: 0.3.7

Plugins Installed: Yes

Plugins (If above is yes):?https://pastebin.com/jrJL1Z2V

YSI Included: Yes 3.1

Output (Logs):?https://pastebin.com/Tnex5cwd


  sampctl again
Posted by: 6cadilab9 - 2019-05-30, 09:51 PM - Forum: Support - Replies (3)

Sorry for asking for help again, feeling like a noob, but this is my first time using this package manager,

i've managed to compile the script, i guess everything from plugins to includes is as it is supposed to be, but now when I try to start the server using



sampctl server run



I get



ERROR: failed to interpret directory as Pawn package: failed to unmarshal samp.json: json: cannot unmarshal string into Go struct field Runtime.output of type bool



Same if I try to ensure, this is samp.json



Code:
{

"rcon_password": "hidden",

"port": 7777,

"hostname": "Balkan Underground",

"maxplayers": 32,

"entry": "balkan-underground.pwn",

"output": "balkan-underground.amx"

}


  SA-MP protocol
Posted by: steve2 - 2019-05-30, 09:40 PM - Forum: Support - Replies (2)

How do I can get an online and ping of a SA-MP servers? As I know, a SA-MP client sends UDP requests to the?server. There are?protocol description? Thx. Also I use Node.js


  Removed Vyrezannye Skins GTA San Andreas
Posted by: Rafael_Rosse - 2019-05-30, 06:06 PM - Forum: Questions and Suggestions - Replies (4)

[Image: Bsp2DSeLWtY.jpg]



Hi guys, I suggest,to make, Skins GTA San Andreas, yes i know they can't make them in a SA:MP no

how skins are made only in the cut scene

but developers can redraw and make them into their client because it?s their client that will add new life to GTA sa

[Video: https://www.youtube.com/watch?v=U7C-nK7ZD_M]

I do not ask to make such exact points I ask you to make new ones to redraw and add them to the samp, add just a little bit of the life of the GTA if it is possible


  [GU?A] Administrador de Templates simples PHP
Posted by: DarkThinking - 2019-05-30, 05:16 PM - Forum: Programaci?n - Replies (8)

En esta gu?a te har? un simple administrador de templates.

Aclaro:
-> este script reemplaza un tag {dato} por una variable o el resultado de una funci?n,
-> es simple y no necesita tanto conocimiento de php para adaptarlo.

Primero crearemos una funcion para obtener el archivo:

PHP Code:
<?php
class Template
{
? ?private 
$tags = []; // tags
? ?private $template// archivo

? ?public function getFile($file// obtener archivo
? ?{
? ? ? ?if(
file_exists($file)) // si existe el archivo
? ? ? ?{
? ? ? ? ? ?
$file file_get_contents($file); // obtiene los datos
? ? ? ? ? ?return $file// y retorna el archivo (los datos)
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?return 
false// retorna 0 o falso en caso de error o no existir el archivo
? ? ? ?}
? ?} 

Luego creamos una funcion para "renderizar" el codigo

PHP Code:
? ?public function render() // renderizar o reemplazar tags
? ?{
? ? ? ?
$this->replaceTags(); // reemplazar tags?

? ? ? ?echo $this->template// imprimir los datos de php reemplazando los tags
? ?} 

Ahora la funcion __construct y el set para poder poner lo reemplazable en el HTML

PHP Code:
? ?public function __construct($templateFile// buscar archivo
? ?{
? ? ? ?
$this->template $this->getFile($templateFile);
? ? ? ?if(!
$this->template) {
? ? ? ? ? ?return 
"Error! no puedo cargar el template -> $templateFile";
? ? ? ?}
? ?}
? ?public function 
set($tag$value// crear tags
? ?{
? ? ? ?
$this->tags[$tag] = $value;
? ?} 

Ahora la funcion que REEMPLAZA los codigos tag

PHP Code:
? ?private function replaceTags() // reemplazar tags
? ?{
? ? ? ?foreach (
$this->tags as $tag => $value) {
? ? ? ? ? ?
$this->template str_replace('{'.$tag.'}'$value$this->template);
? ? ? ?}

? ? ? ?return 
true;
? ?}



bueno esto funciona as?:

PHP Code:
<?php
require_once 'Template.php';
$tpl = new Template('archivo.html'); // creamos el template el cual se carga automaticamente

$tpl->set('codigoparahtml'$variableofuncion); // creamos el tag

$tpl->render(); // "renderizamos"
?>

en el HTML ponemos:

Code:
<h3>{codigoparahtml}</h3>

y se reemplazar? por

$variableofuncion

Codigo completo:

PHP Code:
<?php
class Template
{
? ?private 
$tags = []; // tags
? ?private $template// archivo

? ?public function getFile($file// obtener archivo
? ?{
? ? ? ?if(
file_exists($file))
? ? ? ?{
? ? ? ? ? ?
$file file_get_contents($file);
? ? ? ? ? ?return 
$file;
? ? ? ?}
? ? ? ?else
? ? ? ?{
? ? ? ? ? ?return 
false;
? ? ? ?}
? ?}

? ?public function 
render() // renderizar o reemplazar tags
? ?{
? ? ? ?
$this->replaceTags();

? ? ? ?echo 
$this->template;
? ?}

? ?public function 
__construct($templateFile// buscar archivo
? ?{
? ? ? ?
$this->template $this->getFile($templateFile);
? ? ? ?if(!
$this->template) {
? ? ? ? ? ?return 
"Error! no puedo cargar el template -> $templateFile";
? ? ? ?}
? ?}
? ?public function 
set($tag$value// crear tags
? ?{
? ? ? ?
$this->tags[$tag] = $value;
? ?}
? ?private function 
replaceTags() // reemplazar tags
? ?{
? ? ? ?foreach (
$this->tags as $tag => $value) {
? ? ? ? ? ?
$this->template str_replace('{'.$tag.'}'$value$this->template);
? ? ? ?}

? ? ? ?return 
true;
? ?}