Hai Breadfisher,
und zwar habe ich folgendes Problem !
Immer wenn ich /duty gehe bekommt der Polizist/Swat immer einen zufälligen Skin
Ich poste euch mal den Duty CmD
else if(strcmp(cmd, "/duty", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pLeader] == 18 || PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)
{
if (PlayerToPoint(3,playerid,1122.9005,-2037.1429,69.8940) || PlayerToPoint(3, playerid,254.6658,76.3208,1003.6406) || PlayerToPoint(3,playerid,747.5204,-1359.1096,13.5000) || PlayerToPoint(3,playerid,238.1824,122.9636,1003.2188) || PlayerToPoint(3,playerid,297.4187,186.0052,1007.1719) || PlayerToPoint(3,playerid,210.76,147.35,1003.02) || PlayerToPoint(3,playerid,-1342.2653,495.8866,11.1953))
{
if(OnDuty[playerid]==0)
{
ResetPlayerWeapons(playerid);
format(string, sizeof(string), "* Officer %s nimmt ein Abzeichen und eine Waffe aus seinem Spind.", sendername);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 100);
GivePlayerWeapon(playerid, 25, 500);
GivePlayerWeapon(playerid, 29, 300);
GivePlayerWeapon(playerid, 31, 300);
GivePlayerWeapon(playerid, 33, 500);
GivePlayerWeapon(playerid, 41, 100000000); //unlimited spraycan
GivePlayerWeapon(playerid, 3, 1);
ConsumingArmor[playerid] = 1; SetPlayerArmour(playerid, 100.0);
OnDuty[playerid] = 1;
SetCopOffDutySkin(playerid, 0);
}
else if(OnDuty[playerid]==1)
{
format(string, sizeof(string), "* Officer %s legt ein Abzeichen und eine Waffe in seinem Spind.", sendername);
ResetPlayerWeapons(playerid);
ConsumingArmor[playerid] = 1; SetPlayerArmour(playerid, 0);
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GivePlayerWeapon(playerid, 24, 10);
OnDuty[playerid] = 0;
SetCopOffDutySkin(playerid, 1);
}
}
Wäre cool wenn ihr sagen könntet in welcher Zeile ich den Skin ändern kann !
Vielen Dank im Vorraus