18.12.2010, 18:24
hm
Try this one
pawn Код:
new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
if(veh == 520)
{
if (GetPlayerMoney(playerid) < 20000)
{
SendClientMessage(playerid, 0xFFFFFF, "You need 20.000$ to enter in the Hydra.")
RemovePlayerFromVehicle(playerid);
}
else if(GetPlayerMoney(playerid) > 20000)
{
GivePlayerMoney(playerid,-20000)
SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Hydra.");
}
}