- 0
[GF/RP] Problema comanda /mute
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
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
ToX1c
Salut am o problema la comanda mute nu apare minutele cand dau cuiva mute ..
poza..
if(strcmp(cmd, "/mute", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE, "UTILIZARE: /mute [playerid/PartOfName] [time(minutes)]"); return 1; } new playa; new time; playa = ReturnUser(tmp); tmp = strtok(cmdtext, idx); time = strval(tmp); if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pLeader] >= 1 || PlayerInfo[playerid][pCoordonator] >= 1 || PlayerInfo[playerid][pHelper] >= 1) { if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { GetPlayerName(playa, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); format(string, sizeof(string), "* You muted %s for %d minutes.", giveplayer,time); SendClientMessage(playerid, COLOR_LIGHTRED, string); format(string, sizeof(string), "* You were muted by Admin %s for %d minutes.", sendername,time); SendClientMessage(playa, COLOR_LIGHTRED, string); PlayerInfo[playa][pMuted] = 1; PlayerInfo[playa][pMuteTime] = time*60; format(string, sizeof(string), "You are muted for %d seconds.", PlayerInfo[playerid][pMuteTime]); SendClientMessage(playa, COLOR_YELLOW2, string); format(string, 256, "%s has been muted for %d seconds by Admin %s.", giveplayer,PlayerInfo[playerid][pMuteTime],sendername); ABroadCast(0xE6A2C7FF,string,1); } } } else { SendClientMessage(playerid, COLOR_GRAD1, "Nu ai level-ul de admin suficient pentru a folosi aceasta comanda."); } } return 1; }2 answers to this question
Recommended Posts