Bin grade dran mein Jobsystem zu scripten jetzt hab ich aber ein problem und zwar wechselt er den skin nicht o.o Weiss einer rat?
new Team[MAX_PLAYERS];
#define Job_Cop 0
#define Job_Hitman 1
new jobicon;
new Menu:Job;
Job = Menu:CreateMenu("Arbeitsamt:",1,130,150,300);
AddMenuItem(Job,0,"Polizist");
AddMenuItem(Job,0,"Kopfgeldjäger");
jobicon = CreateCheckpoint(1686.4159,-1344.6235,17.4287,0,6,6,true);
// Menü//
new Menu:Job1 = GetPlayerMenu(playerid);
if(Job1 == Job)
{
switch(row)
{
case 0:
{
SetPlayerSkin(playerid, 282);
Team[playerid] = Job_Cop;
return 1;
}
case 1:
{
SetPlayerSkin(playerid, 125);
Team[playerid] = Job_Hitman;
return 1;
}
}
return 1;
}