Mano eu fiz, sу que ele ta setando a skin da rota...
pawn Код:
CMD:entregarbracal(playerid, params[])
{
if(CSMBR[playerid] == ROCAM || CSMBR[playerid] == ROTA || CSMBR[playerid] == ForcaTatica)
{
new PTiD, adm[MAX_PLAYER_NAME],player[MAX_PLAYER_NAME],motivo[200],string[1000];
GetPlayerName(playerid, adm, sizeof(adm));
GetPlayerName(PTiD, player, sizeof(player));
if(sscanf(params, "us[128]", PTiD,motivo)) return SCM(playerid, -1, "Uso: /entregarbracal [ID] [Guarniзгo]");
PlayerPlaySound(playerid, 1130, 0.0, 0.0, 10.0);
if(!IsPlayerConnected(PTiD)) return false;
if(!strcmp(string, "FT", true))
{
SetPlayerSkin(PTiD, 286);
format(string, sizeof(string), "%s Entregrou o bracal da %s para o %s", adm, motivo, player);
ProxDetector(30.0, playerid, string, 0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF);
return true;
}
if(!strcmp(string, "Forзa Tatica", true))
{
SetPlayerSkin(PTiD, 286);
format(string, sizeof(string), "%s Entregrou o bracal da %s para o %s", adm, motivo, player);
ProxDetector(30.0, playerid, string, 0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF);
return true;
}
if(!strcmp(string, "Forca Tatica", true))
{
SetPlayerSkin(PTiD, 286);
format(string, sizeof(string), "%s Entregrou o bracal da %s para o %s", adm, motivo, player);
ProxDetector(30.0, playerid, string, 0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF);
return true;
}
if(!strcmp(string, "ROCAM", true))
{
SetPlayerSkin(PTiD, 265);
format(string, sizeof(string), "%s Entregrou o bracal da %s para o %s", adm, motivo, player);
ProxDetector(30.0, playerid, string, 0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF);
return true;
}
if(!strcmp(string, "ROTA", true))
{
SetPlayerSkin(PTiD, 280);
format(string, sizeof(string), "%s Entregrou o bracal da %s para o %s", adm, motivo, player);
ProxDetector(30.0, playerid, string, 0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF,0xC4C4C4FF);
return true;
}
ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0, 0, 0, 0, 0, 0);
}
else
{
SCM(playerid, 0xAA3333AA, "Vocк nгo й policial.!");
}
return 1;
}