Jump to content

Question

Posted

Problema intalnita (descriere): Am intrat pe serverul meu cu un baiat si ma vede afk desi nu sunt si eu la fel pe el! am scris afklist si ne arata pe amandoi afk! CE sa fac ?
Ero(area / rile) / warning-(ul / urile): nu sunt
Liniile de cod / sursa / script-ul(obligatoriu): AFK
Imagini / Video (optional):   


Ati incercat sa rezolvati singur?: Da

6 answers to this question

Recommended Posts

  • 0
Posted
CMD:afklist(playerid)
{
    new name[32], string[100];
    SendClientMessage(playerid,COLOR_LIGHT,"________ AFK Players ________");
    foreach(Player, i)
{
if(IsPlayerPaused(i))
{
    GetPlayerName(i,name,sizeof(name));
    format(string,sizeof(string),"%s [%d]",name,i);
    SendClientMessage(playerid,-1,string);
    }
    }
    return 1;
}
  • 0
Posted

Ce script ai adaugat ultima data?

CMD:togapps(playerid, params[])
{
if(playerVariables[playerid][pGroupRank] == 7 && playerVariables[playerid][pGroup] != 0)
{
new stringy2[256], app;
mysql_format(handle, stringy2, 256, "SELECT * FROM `groups` WHERE `groupID` = '%d'", playerVariables[playerid][pGroup]);
new Cache: resultd = mysql_query(handle, stringy2);
if(cache_get_row_count() != 0)
{
cache_get_field_content(0, "groupApplication", result); app = strval(result);
}
cache_delete(resultd);
 
if(app == 1)
{
SCM(playerid, -1, "The applications are now offline.");
mysql_format(handle, stringy2, 256, "UPDATE `groups` SET `groupApplication` = '0' WHERE `groupID` = '%d'", playerVariables[playerid][pGroup]);
mysql_tquery(handle, stringy2);
}
else if(app == 0)
{
SCM(playerid, -1, "The applications are now online.");
mysql_format(handle, stringy2, 256, "UPDATE `groups` SET `groupApplication` = '1' WHERE `groupID` = '%d'", playerVariables[playerid][pGroup]);
mysql_tquery(handle, stringy2);
}
}
else
{
SCM(playerid, -1, "You are not a faction leader!");
}
return 1;
}
 
Asta-i ultima!
Guest
This topic is now closed to further replies.
×
×
  • 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. For more details you can also review our Terms of Use and Privacy Policy.