pawn Код:
CMD:anuncio(playerid, params[])
{
new Nome[MAX_PLAYE_NAME], str[70];
GetPlayerName(playerid, Nome, sizeof(Nome));
if(IsPlayerAdmin(playerid))
return SendClientMessage(playerid,-1,"Nгo e adm");
if(sscan(params,"s", Texto))
return SendClientMessage(playerid,-1,"CMD: /anuncio TEXTO");
format(str,sizeof(str),"%s:%s", Nome, Texto);
SendClientMessageToAll(-1, str);
return 1;
}
CMD:lc(playerid)
{
if(IsPlayerAdmin(playerid))
return SendClientMessage(playerid,-1,"Nгo e adm");
for(new r = 0; r <100; r++){SendClientMessageToAll(-1, "");}
return 1;
}
CMD:dararma(playerid, params[])
{
new Nome[MAX_PLAYE_NAME], ID, IDA;
GetPlayerName(playerid, Nome, sizeof(Nome));
if(IsPlayerAdmin(playerid))
return SendClientMessage(playerid,-1,"Nгo e adm");
if(sscan(params,"ii", ID, IDA))
return SendClientMessage(playerid,-1,"CMD: /dararma ID || Id Arma");
GivePlayerWeapon(ID, IDA, 5000);
return 1;
}