04.08.2012, 20:09
pawn Код:
CMD:setestilo(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,VERMELHO,"[ERRO]: Nгo pode usar este comando");
if(sscanf(params, "uu",player,estilo)) return SendClientMessage(playerid,VERMELHO,"Use: /setestilo [id] [estilo]");
if(!IsPlayerConnected(player)) return SendClientMessage(playerid, VERDE, "[ERRO]: Este jogador nгo estб conectado");
GetPlayerName(playerid,nome,sizeof(nome));
format(Str, sizeof(Str), "%s Curti й %s",nome,estilo);
SendClientMessageToAll(VERMELHO,Str);
return true;
}
pawn Код:
if(sscanf(params, "us",player,estilo)) return SendClientMessage(playerid,VERMELHO,"Use: /setestilo [id] [estilo]");