12.01.2018, 04:11
I have Problem, press H (2) so nothing happens
if(PlayerInfo[playerid][Job] == 5)..? Army Job
if(PlayerInfo[playerid][Job] == 5)..? Army Job
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if(IsPlayerConnected(playerid))
{
if(newkeys == 2)
{
if(PlayerInfo[playerid][Job] == 5)
{
if(IsPlayerInRangeOfPoint(playerid,30,2209.7000000,-2662.8000000,0.2900000))
{
if(Objekty[0] == 0)
{
MoveObject(Cela[0], 2209.7000000,-2662.8000000,0.2900000, 2.0);
Objekty[0] = 1;
}else{
MoveObject(Cela[0], 2209.7000000,-2662.8000000,14.2900000, 2.0);
Objekty[0] = 0;
}
}
}
}
}
return 1;
}