Hii ich habe ein Problem unswar wenn ich einen Spieler Invite dann kann er nicht /weiter machen..kann er schon aber seine skins wechseln nicht aber wenn ein Leader sich selbst invitet
funktioniert mit den skins alles bestens xD
ocmd:weiter(playerid,params[])
{
if(GetPVarInt(playerid,"invite") == 1)
{
if(GetPVarInt(playerid, "Skin") == 0) { SetPVarInt(playerid, "Skin", 1);}
if(isPlayerInFrakt(playerid,1))
switch(GetPVarInt(playerid, "Skin"))//LSPD
{
case 1: { SetPlayerSkin(playerid,288); SetPVarInt(playerid, "Skin", 2); }
case 2: { SetPlayerSkin(playerid,283); SetPVarInt(playerid, "Skin", 3); }
case 3: { SetPlayerSkin(playerid,282); SetPVarInt(playerid, "Skin", 4); }
case 4: { SetPlayerSkin(playerid,281); SetPVarInt(playerid, "Skin", 5); }
case 5: { SetPlayerSkin(playerid,280); SetPVarInt(playerid, "Skin", 6); }
case 6: { SetPlayerSkin(playerid,284); SetPVarInt(playerid, "Skin", 1); }
}
if(isPlayerInFrakt(playerid,2))//GROVE
switch(GetPVarInt(playerid, "Skin"))
{
case 1: { SetPlayerSkin(playerid,107); SetPVarInt(playerid, "Skin", 2); }
case 2: { SetPlayerSkin(playerid,106); SetPVarInt(playerid, "Skin", 3); }
case 3: { SetPlayerSkin(playerid,105); SetPVarInt(playerid, "Skin", 4); }
}
if(isPlayerInFrakt(playerid,3))//MEDIC/FEUERWEHR
switch(GetPVarInt(playerid, "Skin"))
{
case 1: { SetPlayerSkin(playerid,277); SetPVarInt(playerid, "Skin", 2); }
case 2: { SetPlayerSkin(playerid,278); SetPVarInt(playerid, "Skin", 3); }
case 3: { SetPlayerSkin(playerid,279); SetPVarInt(playerid, "Skin", 4); }
case 4: { SetPlayerSkin(playerid,275); SetPVarInt(playerid, "Skin", 5); }
case 5: { SetPlayerSkin(playerid,276); SetPVarInt(playerid, "Skin", 6); }
case 6: { SetPlayerSkin(playerid,274); SetPVarInt(playerid, "Skin", 1); }
}
if(isPlayerInFrakt(playerid,4))//LCN
switch(GetPVarInt(playerid, "Skin"))
{
case 1: { SetPlayerSkin(playerid,124); SetPVarInt(playerid, "Skin", 2); }
case 2: { SetPlayerSkin(playerid,125); SetPVarInt(playerid, "Skin", 3); }
case 3: { SetPlayerSkin(playerid,126); SetPVarInt(playerid, "Skin", 4); }
case 4: { SetPlayerSkin(playerid,127); SetPVarInt(playerid, "Skin", 5); }
case 5: { SetPlayerSkin(playerid,113); SetPVarInt(playerid, "Skin", 6); }
case 6: { SetPlayerSkin(playerid,111); SetPVarInt(playerid, "Skin", 1); }
}
if(isPlayerInFrakt(playerid,5))//FBI
switch(GetPVarInt(playerid,"Skin"))
{
case 1: { SetPlayerSkin(playerid,163); SetPVarInt(playerid, "Skin", 2); }
case 2: { SetPlayerSkin(playerid,164); SetPVarInt(playerid, "Skin", 3); }
case 3: { SetPlayerSkin(playerid,286); SetPVarInt(playerid, "Skin", 4); }
case 4: { SetPlayerSkin(playerid,285); SetPVarInt(playerid, "Skin", 5); }
case 5: { SetPlayerSkin(playerid,165); SetPVarInt(playerid, "Skin", 6); }
case 6: { SetPlayerSkin(playerid,166); SetPVarInt(playerid, "Skin", 1); }
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "Du wurdest nicht eingeladen!");
}
return 1;
}