09.10.2011, 16:29
Ta Assim So que eu num sei como Alterar as Skins
pawn Код:
//CONVIDAR DO INFOORG
if(strcmp(cmd, "/convidar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE: /convidar [ID/Nome]");
return 1;
}
new para1;
new ftext[256];
new org;
para1 = ReturnUser(tmp);
if(GetPlayerOrg(playerid) >= 1)
{
if(PlayerInfo[playerid][pCargo] >= 5)
{
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo tem cargo o suficiente para convidar!");
return 1;
}
}
if(GetPlayerOrg(playerid) >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMembro] == 0 && PlayerInfo[para1][pFMember] == 255)
{
org = GetPlayerOrg(playerid);
if(ConviteInfoOrg(PlayerNamex(para1), org, 1)) { } else { SendClientMessage(playerid, COLOR_LIGHTBLUE, "Sua organizaзгo estб cheia limpe uma vaga!"); return 1;}
if(org == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policia Militar LS"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "BOPE"; ChosenSkin[para1] = 285; SetPlayerSkin(para1, 285); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "EXERCITO"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 4) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Medicos"; ChosenSkin[para1] = 70; SetPlayerSkin(para1, 70); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 5) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Los Aztecas"; ChosenSkin[para1] = 115; SetPlayerSkin(para1, 115); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 6) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Taliban"; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 7) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Prefeitura LS"; ChosenSkin[para1] = 163; SetPlayerSkin(para1, 163); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 8) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Hitmans"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 9) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "CNN Studio"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 10) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Taxistas"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 11) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "School Instructors"; ChosenSkin[para1] = 103; SetPlayerSkin(para1, 103); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 12) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Amigo dos Amigos"; ChosenSkin[para1] = 18; SetPlayerSkin(para1, 18); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 15) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Groove Street"; ChosenSkin[para1] = 105; SetPlayerSkin(para1, 105); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 16) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Alqaeda"; ChosenSkin[para1] = 30; SetPlayerSkin(para1, 30); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 17) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policia Civil"; ChosenSkin[para1] = 141; SetPlayerSkin(para1, 141); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 18) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Ballas"; ChosenSkin[para1] = 103; SetPlayerSkin(para1, 103); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 19) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Los VagoS"; ChosenSkin[para1] = 109; SetPlayerSkin(para1, 227); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 20) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Mafia Yakuza"; ChosenSkin[para1] = 117; SetPlayerSkin(para1, 117);ChosenSkin[para1] = 118; SetPlayerSkin(para1, 118); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 21) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Sons Of Anarchy"; ChosenSkin[para1] = 248; SetPlayerSkin(para1, 248); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 22) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Mafia Cosa Nostra"; ChosenSkin[para1] = 117; SetPlayerSkin(para1, 117); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 23) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Comando Vermelho"; ChosenSkin[para1] = 24; SetPlayerSkin(para1, 24); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 24) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Drifters"; ChosenSkin[para1] = 28; SetPlayerSkin(para1, 28); SetPlayerColor(para1,COLOR_GRAD2);}
if(org == 25) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Policia Federal"; ChosenSkin[para1] = 290; SetPlayerSkin(para1, 290); SetPlayerColor(para1,COLOR_PF);}
//else { return 1; }
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pMembro] = org;
PlayerInfo[para1][pCargo] = 1;
//printf("AdmCmd: %s has invited %s to join %s.", sendername, giveplayer, ftext);
format(string, sizeof(string), " Voce entrou para %s, Voce foi convidado pelo lider %s", ftext, sendername);
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " Voce convidou %s Para entrar para %s.", giveplayer,ftext);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
SetPlayerInterior(para1,0);
new rand = random(sizeof(gInviteSpawns));
SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
TogglePlayerControllable(para1, 0);
SelectChar[para1] = 255;
SelectCharID[para1] = PlayerInfo[para1][pMembro];
SelectCharPlace[para1] = 1;
PlayerInfo[para1][pModel] = ChosenSkin[para1];
PlayerInfo[para1][pChar] = ChosenSkin[para1];
SendClientMessage(para1, COLOR_LIGHTRED, "- Use 'Proximo' para escolher a Skin Seguinte.");
SendClientMessage(para1, COLOR_LIGHTRED, "- Digite 'Confirmar' para escolher a Skin Selecionada.");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Esse Jogador Ja Estб em Uma Organizaгo.");
return 1;
}
}
}//not connected
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Voce nao e um Lider!");
}
}
return 1;
}