[AJUDA] Restrito para as Seguintes prof. -
Baigou - 25.09.2011
Por favor, Sou iniciante em pawn, estou querendo uma forзa x.x
Eu queria por um comando, para devidas profissхes utilizarem.
if(!strcmp(cmdtext,"/escudo",true))
{
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0 .0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0 ,-0.11,0.0,-90.0,90.0);
GivePlayerWeapon(playerid,3,1);
SendClientMessage(playerid,0xAFAFAFAA," Vocк Pegou Seu Escudo!");
return 1;
}
Para as devidas profs:
if(Profissao[playerid] == PROF_INTERPOL || Profissao[playerid] == PROF_CIVIL || Profissao[playerid] == PROF_FBI || Profissao[playerid] == PROF_CIA || Profissao[playerid] == PROF_ROTA || Profissao[playerid] == PROF_RODOVIARIA || Profissao[playerid] == PROF_FLORESTAL || Profissao[playerid] == PROF_FEDERAL || IsPlayerAdmin(playerid))
e com o Desequipar a mesma coisa.
if(!strcmp(cmdtext,"/Desequipar",true))
{
{
for(new i; i<MAX_PLAYERS; i++)
{
RemovePlayerAttachedObject(i,1);
RemovePlayerAttachedObject(i,2);
RemovePlayerAttachedObject(i,3);
RemovePlayerAttachedObject(i,4);
}
SendClientMessage(playerid,0xAFAFAFAA," Vocк retirou seus equipes.");
}
return 1;
}
Para as devidas profissхes:
if(Profissao[playerid] == PROF_INTERPOL || Profissao[playerid] == PROF_CIVIL || Profissao[playerid] == PROF_FBI || Profissao[playerid] == PROF_CIA || Profissao[playerid] == PROF_ROTA || Profissao[playerid] == PROF_RODOVIARIA || Profissao[playerid] == PROF_FLORESTAL || Profissao[playerid] == PROF_FEDERAL || IsPlayerAdmin(playerid))
Agradeзo desde jб.
Re: [AJUDA] Restrito para as Seguintes prof. -
Pharrel - 25.09.2011
Primeiramente pхe os codigos entre [pawn] CODIGO AQUI [/pawn ] ai vai ser mais facil alguem te ajudar...
pawn Код:
if(!strcmp(cmdtext,"/escudo",true))
{
if(Profissao[playerid] == PROF_INTERPOL || Profissao[playerid] == PROF_CIVIL || Profissao[playerid] == PROF_FBI || Profissao[playerid] == PROF_CIA || Profissao[playerid] == PROF_ROTA || Profissao[playerid] == PROF_RODOVIARIA || Profissao[playerid] == PROF_FLORESTAL || Profissao[playerid] == PROF_FEDERAL || IsPlayerAdmin(playerid))
{
SetPlayerAttachedObject(playerid,3,18637,13,0.35,0 .0,0.0,0.0,0.0,180.0);
SetPlayerAttachedObject(playerid,4,18642,7,0.1,0.0 ,-0.11,0.0,-90.0,90.0);
GivePlayerWeapon(playerid,3,1);
return SendClientMessage(playerid,0xAFAFAFAA," Vocк Pegou Seu Escudo!");
}
else return SendClientMessage(playerid, -1, "vc n pode por escudo!");
return 1;
}
Re: [AJUDA] Restrito para as Seguintes prof. -
Baigou - 25.09.2011
Obrigado '-'
aaa -
Baigou - 25.09.2011
__________________________________________________ ___________
Re: [AJUDA] Restrito para as Seguintes prof. -
Pharrel - 25.09.2011
Nгo consegui mentalizar as linhas do seu GM...
Posta as linhas q deram os erros.
aaaa -
Baigou - 25.09.2011
__________________________________________________ ___________
aaa -
Baigou - 25.09.2011
__________________________________________________ ___________
Re: [AJUDA] Restrito para as Seguintes prof. -
Lуs - 25.09.2011
Sinto fedo de banimento.