25.09.2011, 08:30
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б.
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б.