23.12.2011, 03:19
I have Problem with My Class....
"I have Solider and Engineer Class"
and I want Both Class Can Drive Tanks.
But..when I'm Solider I Can't Drive Tank.
Message " You Need Solider/Engineer To Drive Tanks"
what's the problem?
"I have Solider and Engineer Class"
and I want Both Class Can Drive Tanks.
pawn Код:
public OnPlayerStateChange(playerid,newstate,oldstate)
{
new EngCheck = GetVehicleModel(GetPlayerVehicleID(playerid));
if(EngCheck == 432)
if (Solider[playerid] == 0 || Eng[playerid] == 0)
{
SendClientMessage(playerid, COLOR_RED, " You Need Solider/Engineer To Drive Tanks");
RemovePlayerFromVehicle(playerid);
}
return 1;
}
Message " You Need Solider/Engineer To Drive Tanks"
what's the problem?