- 0
Admin Chat
-
Similar Content
-
- 1 answer
- 489 views
-
- 1 reply
- 221 views
-
- 3 answers
- 388 views
-
- 1 reply
- 3,290 views
-
Sistem admin
By IosifR,
- 9 replies
- 1,967 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By IosifR,
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.
Question
Deejaybwg
Am facut un Admin Chat dupa comanda pentru VIP CHAT.
Comanda pentru VIP CHAT:
[pawn]dcmd_vc(playerid,params[])
{
#pragma unused params
if(IsPlayerVipMember(playerid))
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /vc [Text] ") &&
SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
new string[128];
format(string, sizeof(string), "|- **VIP {FFFFFF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);
return SendClientMessageToAll(LIGHTBLUE,string);
}
else return ErrorMessages(playerid, 7);
}[/pawn]
Si comanda pentru Admin Chat:
[pawn]dcmd_ac(playerid,params[])
{
#pragma unused params
if(AccInfo[playerid][Level] >= 1
{
if(!strlen(params)) return
SendClientMessage(playerid, LIGHTBLUE2, "Usage: /ac [Text] ") &&
SendClientMessage(playerid, orange, "Function: Will send specified message as Admin!");
new string[128];
format(string, sizeof(string), "|- {0049FF}Administrator {00C0FF}%s{F81414}:{FFAF00} %s", PlayerName2(playerid), params[0]);
return SendClientMessageToAll(LIGHTBLUE,string);
}
else return ErrorMessages(playerid, 7);
}[/pawn]
Am pus si la OnPlayerCommandText:
[pawn]dcmd(ac,2,cmdtext);[/pawn]
Am dat compile si mi-a dat o eroare:
C:\Users\Bwggu\Desktop\LuxAdmin.pwn(4182) : error 029: invalid expression, assumed zero
Cum o rezolv ?
www.youtube.com/thebwgg
Link to comment
Share on other sites
1 answer to this question
Recommended Posts