Damit wird doch der Skin ausgelesen?
dini_IntSet(pfad, "skin", variable);
Also heißt das so oder?
Function AdminDienst(playerid)
{
new sendername[MAX_PLAYER_NAME],string[128];
if(AdminDuty[playerid] == 0)
{
if(PlayerInfo[playerid][pAdmin] == 1 || PlayerInfo[playerid][pAdmin] == 2 || PlayerInfo[playerid][pAdmin] == 3)
{
AdminDuty[playerid] = 1;
dini_IntSet(pfad, "skin", variable);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* %s hat sich zum Support angemeldet. Bei Fragen /sup",sendername,playerid);
SendClientMessageToAll(COLOR_GREEN, string);
SetPlayerSkin(playerid, 278);
SetPlayerAttachedObject(playerid, 3, 18646, 2, 0.290, -0.02, 0.01, 5.50, 84.60, 84.7, 1, 1, 1, 0xFF000000);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0xFF5A00FF);
return 1;
}
if(PlayerInfo[playerid][pAdmin] == 4 || PlayerInfo[playerid][pAdmin] == 5)
{
AdminDuty[playerid] = 1;
dini_IntSet(pfad, "skin", variable);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* %s hat sich zum Support angemeldet. Bei Fragen /sup",sendername,playerid);
SendClientMessageToAll(COLOR_GREEN, string);
SetPlayerSkin(playerid, 278);
SetPlayerAttachedObject(playerid, 3, 18646, 2, 0.290, -0.02, 0.01, 5.50, 84.60, 84.7, 1, 1, 1, 0xFF000000);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0xFF5A00FF);
return 1;
}
if(PlayerInfo[playerid][pAdmin] >=6)
{
AdminDuty[playerid] = 1;
dini_IntSet(pfad, "skin", variable);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* %s hat sich zum Support angemeldet. Bei Fragen /sup",sendername,playerid);
SendClientMessageToAll(COLOR_GREEN, string);
SetPlayerSkin(playerid, 278);
SetPlayerAttachedObject(playerid, 3, 18646, 2, 0.290, -0.02, 0.01, 5.50, 84.60, 84.7, 1, 1, 1, 0xFF000000);
SetPlayerArmour(playerid, 100);
SetPlayerColor(playerid,0xFF5A00FF);
return 1;
}
}
if(AdminDuty[playerid] == 1)
{
new Fraktion;
AdminDuty[playerid] = 0;
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string,sizeof(string),"* %s hat sich vom Support abgemeldet.",sendername,playerid);
SendClientMessageToAll(COLOR_RED, string);
for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
if(IsPlayerAttachedObjectSlotUsed(playerid,i)) RemovePlayerAttachedObject(playerid,i);
SkinZuweisen(playerid,Fraktion);
SetPlayerArmour(playerid, 0);
SetPlayerColor(playerid,0xFEFEFEFF);
}
return 1;
}
Sobald er sich anmeldet, wird sein Skin damit "dini_IntSet(pfad, "skin", variable);" geschpeichert oder?
Und wenn er wieder offduty geht dann wird der Skin wieder hergegeben, wie heißt der Befehl?