Hi,
was habe ich hier falsch gemacht? Funktionieren tuts jedenfalls nicht...
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (newkeys & KEY_SUBMISSION)
{
//LSPD
if(PlayerToPoint(1.0, playerid, 1580.0464,-1635.0250,13.5613))
{
if(AccountInfo[playerid][Hjob] == 1)
{
if(AccountInfo[playerid][JobActive] == 0)
{
SetPlayerSkin(playerid, 280);
SetPlayerColor(playerid, 0x375FFFFF);
AccountInfo[playerid][JobActive] = 1;
GivePlayerWeapon(playerid, 334, 1);
GivePlayerWeapon(playerid, 348, 60);
return 1;
}
else
{
SetPlayerSkin(playerid, AccountInfo[playerid][Skin]);
SetPlayerColor(playerid, 0xFFFFFFFF);
AccountInfo[playerid][JobActive] = 0;
GivePlayerWeapon(playerid, 334, -1);
GivePlayerWeapon(playerid, 348, -60);
return 1;
}
}
}
}
return 1;
}
Gruß
samu