[AJUDA] Restrito para as Seguintes prof.
#1

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б.
Reply
#2

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;
 }
Reply
#3

Obrigado '-'
Reply
#4

__________________________________________________ ___________
Reply
#5



Nгo consegui mentalizar as linhas do seu GM...

Posta as linhas q deram os erros.
Reply
#6

__________________________________________________ ___________
Reply
#7

__________________________________________________ ___________
Reply
#8

Sinto fedo de banimento.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)