Jump to content

Green Street Bloods - Discutii generale | General discussions


Alexander
 Share

Recommended Posts

Eşti bazat. :))

Şi eu scriptez, lucrez la un game mode de la 0 împreună cu un amic...am făcut sistemul bancar cu tva, dobândă diferită pentru fiecare bancă, cod pin pentru fiecare client, etc.

Incercati sa faceti sistem de war ca pe bzone, eu am reusit :D:))

Link to comment
Share on other sites

Intru pe server si va dau un

 

CMD:ban(playerid, params[])

{

if (PlayerInfo[playerid][pAdmin] >= 2)

{

new string[128], giveplayerid, reason[64];

if(sscanf(params, "us[64]", giveplayerid, reason)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /ban [player] [reason]");

 

if(IsPlayerConnected(giveplayerid))

{

if(PlayerInfo[giveplayerid][pAdmin] > PlayerInfo[playerid][pAdmin])

{

format(string, sizeof(string), "AdmCmd: %s has been auto-banned, reason: Trying to /ban a higher admin.", GetPlayerNameEx(playerid));

ABroadCast(COLOR_YELLOW,string,2);

PlayerInfo[playerid][pBanned] = 1;

new ip[32];

GetPlayerIp(playerid,ip,sizeof(ip));

AddBan(ip);

Kick(playerid);

return 1;

}

else

{

new year, month,day;

getdate(year, month, day);

new playerip[32];

GetPlayerIp(giveplayerid, playerip, sizeof(playerip));

format(string, sizeof(string), "AdmCmd: %s(IP:%s) was banned by %s, reason: %s (%d-%d-%d)", GetPlayerNameEx(giveplayerid), playerip, GetPlayerNameEx(playerid), reason,month,day,year);

Log("logs/ban.log", string);

format(string, sizeof(string), "AdmCmd: %s was banned by %s, reason: %s", GetPlayerNameEx(giveplayerid), GetPlayerNameEx(playerid), reason);

SendClientMessageToAllEx(COLOR_LIGHTRED, string);

PlayerInfo[giveplayerid][pBanned] = 1;

format(PlayerInfo[giveplayerid][pFlag], 128, "NULL");

new ip[32];

GetPlayerIp(giveplayerid,ip,sizeof(ip));

AddBan(ip);

Kick(giveplayerid);

return 1;

}

 

}

}

else SendClientMessageEx(playerid, COLOR_GRAD1, "Invalid player specified.");

return 1;

}

Link to comment
Share on other sites

Ceao intru sa va dau un

CMD:unban(playerid, params[])

{

if(PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pBanAppealer] >= 1)

{

new string[128];

if(isnull(params)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /unban [playername]");

 

if(g_mysql_DoesAccountExist(params))

{

if(g_mysql_GetAccInt("PermBand", params) == 3)

{

SendClientMessageEx( playerid, COLOR_WHITE, "Permanently banned accounts can only be unbanned via FTP." );

}

else

{

if(g_mysql_GetAccInt("Band", params) >= 1)

{

new tmpIP[16];

format(tmpIP, sizeof(tmpIP), "%s", g_mysql_GetAccString("IP", params));

g_mysql_SetAccInt("Band", params, 0);

g_mysql_SetAccInt("Warnings", params, 0);

g_mysql_SetAccInt("Disabled", params, 0);

RemoveBan(tmpIP);

 

format(string, 128, "AdmCmd: %s (IP:%s) was unbanned by %s.", params, tmpIP, GetPlayerNameEx(playerid));

ABroadCast(COLOR_LIGHTRED,string,2);

new year, month,day;

getdate(year, month, day);

format(string, sizeof(string), "AdmCmd: %s (IP:%s) was unbanned by %s. (%d-%d-%d)", params, tmpIP, GetPlayerNameEx(playerid),month,day,year);

Log("logs/ban.log", string);

print(string);

}

else

{

SendClientMessageEx( playerid, COLOR_WHITE, "Not a banned account!" );

}

}

}

else

{

SendClientMessageEx( playerid, COLOR_WHITE, "That account doesn't exist." );

}

}

else

{

SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!");

}

return 1;

}

 

ahahahha :))) noapte buna

Link to comment
Share on other sites

Ce m-aş râde să iei un suspend frumos acum la 1000 posturi să nu te poţi bucura de member title mwahhahaha.

Hai că mă bag la serial, noapte bună pisoiaşi.

:)) Nu-i frumos sa vrei raul altuia :))

Noapte buna ma duc sa ma culc.

Link to comment
Share on other sites

Ati facut o pagina intreaga numai cu /ban si /unban :)) Zici ca scriptam aici :))

Ii dadeam lectii lui speedy

A făcut cineva propunere acum câteva zile să facă o secţiune tip scripting dar n-a vrut :(.

Vă dădeam puţină clasă :D.

Clasa 1 ? :))

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.