Posts: 34
Threads: 17
Joined: Nov 2013
pawn Код:
CMD:cc(playerid, params[])
{
if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Ban can phai login truoc khi su dung lenh nay.");
if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pHelper] < 2) return SendClientMessage(playerid, COLOR_GREY, "Ban Khong Duoc Phep Su Dung Lenh Nay.");
for(new i=0; i<100; i++)
{
SendClientMessageToAll(COLOR_WHITE, "Chatlog da duoc xoa boi %s", GetPlayerNameEx(playerid));
}
return 1;
}
Line warrnings SendClientMessageToAll(COLOR_WHITE, "Chatlog da duoc xoa boi %s", GetPlayerNameEx(playerid));
help
Posts: 34
Threads: 17
Joined: Nov 2013
Quote:
Originally Posted by Laurey
pawn Код:
CMD:cc(playerid, params[]) { new string[128]; if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid, COLOR_GREY, "Ban can phai login truoc khi su dung lenh nay."); if(PlayerInfo[playerid][pAdmin] < 4 && PlayerInfo[playerid][pHelper] < 2) return SendClientMessage(playerid, COLOR_GREY, "Ban Khong Duoc Phep Su Dung Lenh Nay."); for(new i=0; i<100; i++) { format(string, sizeof(string), "Chatlog da duoc xoa boi %s", GetPlayerNameEx(playerid)); SendClientMessageToAll(COLOR_WHITE, string); } return 1; }
Try this.
|
thanks u