[Ajuda] /Particular -
rezzutto - 04.08.2010
Eae Gente pow sera q vc6 podem me ajuda ? e uma duvida simples sou novato em pwn
tipo eu gostaria de fazer o cmd /particular /par so que eu queria fazer para Players falarem com ADM's Em particular
pq para o cmd de adm eu jah tenho so queria ajuda no cmd para Players poderem dar ./par apenas para adm's
ex : /par Id mensagem
oks OBG ..
Re: [Ajuda] /Particular -
rezzutto - 04.08.2010
Alguem Me ajuda Preciso Urgente Disso
Re: [Ajuda] /Particular -
Falcon. - 04.08.2010
Olha o Double Post ....cara de uma pesquisada em gm's que tem por ai ..procura pelo comando /relato..й mais ou menos isso que vocк quer..se quizer de outro geito da uma modificadinha nele..
Re: [Ajuda] /Particular -
keller012 - 04.08.2010
tu tem sistema de mp no teu servidor??
pega ele e altera
Re: [Ajuda] /Particular -
rezzutto - 04.08.2010
desculpa pelo double
Nao keller eu nao tenho esse sistema
mais tipo eu so quero que o player possa dar /par para 1 adm
Re: [Ajuda] /Particular -
ipsBruno - 04.08.2010
pawn Код:
if(strcmp(cmd, "/par", true) == 0)
{
new tmp[128];
new string[128];
if(!IsPlayerAdmin(strval(tmp))) return SendClientMessage(playerid,COR_AQUI,"O Player nгo й Admin");
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Mensagem de :%s: [%s] ",name,tmp);
SendClientMessage(strval(tmp),COR_AQUI,string);//COR
return 1;
}
Re: [Ajuda] /Particular -
Falcon. - 04.08.2010
entao cara..procura algo do tipo /relato em alguns gamemodes por ai ..й a coisa que voce quer..mas o relato й usado para denunciar xiters e tal'z(ashoq)...mas tbm pode ser usado como /par ..... ...isso aew..fuiz
@Edit: Na hora que eu fui mandar o DraKoN ja avia mandado a menssagem dele...fail para euol..'-'
Re: [Ajuda] /Particular -
Pedro_Drin - 04.08.2010
Po , peguei de um GameMode aqui , acho que й do thug... nao sei .
Faзa suas adaptaзхes ai...
@edit...
apaguei , dark posto um bem simplificado , good
Re: [Ajuda] /Particular -
ipsBruno - 04.08.2010
Nгo sou Dark, Dark й meu namorado.. iriairiarara
Sou DraKoN
// So Falta o Autor do tуpico dizer se funcionou ou nгo,lol
Re: [Ajuda] /Particular -
lucas_mdr1235 - 17.08.2010
cara ta aqui testado sou navato e ja ajudando
Crйditos a Caio_Cartaxo - Sistema pego do GM VLC feito pelo mesmo.
pawn Код:
if(strcmp(cmd, "/particular", true) == 0 || strcmp(cmd, "/par", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GREY, "Voce nгo e admin!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: (/par)ticular [ id ] [texto]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
if(HidePM[giveplayerid] > 0)
{
SendClientMessage(playerid, COLOR_GREY, "O jogador bloqueor PMs!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
if(giveplayerid == playerid)
{
format(string, sizeof(string), "* %s mutters somthing.", sendername);
ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
}
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: (/par)ticular [ id ] [testo]");
return 1;
}
format(string, sizeof(string), "%s(ID: %d) particular: %s", sendername, playerid, (result));
SendClientMessage(giveplayerid, COLOR_YELLOW, string);
format(string, sizeof(string), "PM enviada para %s(ID: %d).", giveplayer, giveplayerid);
SendClientMessage(playerid, COLOR_YELLOW, string);
SBizzInfo[2][sbTill] += txtcost / 2;
ExtortionSBiz(2, txtcost / 2);
return 1;
}
}
else
{
format(string, sizeof(string), " %d estб off-line.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}