23.07.2015, 10:05
Hi guys i have Question + Help
i want Hide this
To be Like this After hidden
and this is the CMDs:
i want Hide this
Код:
if(Account[playerid][Level] == 4)
{
new String[128];
format(String, sizeof(String), "{996666}[MOD] {25A5A8}%s(%d): {FFFFFF}%s",GetName(playerid), playerid, text);
SendClientMessageToAll(-1,String);
return 0;
}
if(Account[playerid][Level] == 5)
{
new String[128];
format(String, sizeof(String), "{996666}[LEADER] {25A5A8}%s(%d): {FFFFFF}%s",GetName(playerid), playerid, text);
SendClientMessageToAll(-1,String);
return 0;
}
Код:
if(Account[playerid][Level] == 0)
{
new String[128];
format(String, sizeof(String), "{%06x}%s: {FFFFFF}(%d): %s", (GetPlayerColor(playerid) >>> 8),GetName(playerid), playerid, text);
SendClientMessageToAll(-1,String);
return 0;
}
Код:
YCMD:hidden(playerid,params[], help)
{
#pragma unused params
if(Account[playerid][Level] < 4) return SendClientMessage(playerid,COLOR_ERROR,"You need to be level 4 to use this command!");
{
if(hide[playerid]== 0)
{
hide[playerid] = 1;
SendClientMessage(playerid, 0xFFFFFFFF,"{38FF06}You are now hidden on /admins ");
}
}
return 1;
}
YCMD:showv(playerid,params[], help)
{
#pragma unused params
if(Account[playerid][Level] < 4) return SendClientMessage(playerid,COLOR_ERROR,"You need to be level 4 to use this command!");
{
if(hide[playerid] == 1)
{
hide[playerid] = 0;
SendClientMessage(playerid,0xFFFFFFFF,"{FF9900}You are now in visible in /admins ");
}
}
return 1;
}


