Hab ich aber...
Es Funktioniert nicht man kriegt immer Skin 1.(CJ)
public OnPlayerDeath(playerid, killerid, reason)
{
if(GetPVarInt(playerid,"Donator")==0)
{
SetPVarInt(playerid,"Tode",GetPVarInt(playerid,"Tode")+1);
SetPVarInt(killerid,"Kills",GetPVarInt(killerid,"Kills")+1);
GivePlayerMoney(killerid,250);
SetPVarInt(killerid,"Respektpunkte",GetPVarInt(killerid,"Respektpunkte")+1);
}
if(GetPVarInt(playerid,"Donator")==1)
{
SetPVarInt(playerid,"Tode",GetPVarInt(playerid,"Tode")+1);
SetPVarInt(killerid,"Kills",GetPVarInt(killerid,"KIlls")+1);
GivePlayerMoney(killerid,500);
SetPVarInt(killerid,"Respektpunkte",GetPVarInt(killerid,"Respektpunkte")+2);
}
SetPVarInt(playerid,"Killed",1);
if(GetPVarInt(playerid,"Killed")==1)
{
SetTimer("Toggle",3000,1 );
TogglePlayerSpectating(playerid, 1);
PlayerSpectatePlayer(playerid, killerid);
}
if(GetPVarInt(playerid,"Klassen")==1)
{
if(GetPVarInt(playerid,"Team")==1)
{
SetPlayerSkin(playerid,287);
}
if(GetPVarInt(playerid,"Team")==2)
{
SetPlayerSkin(playerid,206);
}
if(GetPVarInt(playerid,"Team")==3)
{
SetPlayerSkin(playerid,125);
}
if(GetPVarInt(playerid,"Team")==4)
{
SetPlayerSkin(playerid,142);
}
if(GetPVarInt(playerid,"Team")==5)
{
SetPlayerSkin(playerid,156);
}
if(GetPVarInt(playerid,"Team")==6)
{
SetPlayerSkin(playerid,203);
}
if(GetPVarInt(playerid,"Team")==7)
{
SetPlayerSkin(playerid,118);
}
}
if(GetPVarInt(playerid,"Klassen")==1)
{
SetPlayerSkin(playerid,70);
}
if(GetPVarInt(playerid,"Klassen")==3)
{
if(GetPVarInt(playerid,"Team")==1)
{
SetPlayerSkin(playerid,60);
}
if(GetPVarInt(playerid,"Team")==2)
{
SetPlayerSkin(playerid,47);
}
if(GetPVarInt(playerid,"Team")==3)
{
SetPlayerSkin(playerid,43);
}
if(GetPVarInt(playerid,"Team")==4)
{
SetPlayerSkin(playerid,95);
}
if(GetPVarInt(playerid,"Team")==5)
{
SetPlayerSkin(playerid,98);
}
if(GetPVarInt(playerid,"Team")==6)
{
SetPlayerSkin(playerid,59);
}
if(GetPVarInt(playerid,"Team")==7)
{
SetPlayerSkin(playerid,57);
}
}
if(GetPVarInt(playerid,"Klasse")==4)
{
SetPVarInt(playerid,"Klassen",4);
SetPlayerSkin(playerid,149);
}
SpielerSpeichern(playerid);
return 1;
}