18.12.2010, 18:32
pawn Код:
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
{
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.");
}
}
if(veh == 425)
{
if (GetPlayerMoney(playerid) < 35000)
{
SendClientMessage(playerid, 0xFFFFFF, "You need 35.000$ to enter in the Hunter.");
RemovePlayerFromVehicle(playerid);
}
else if(GetPlayerMoney(playerid) > 35000)
{
GivePlayerMoney(playerid,-35000);
SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Hunter.");
}
}
if(veh == 432)
{
if (GetPlayerMoney(playerid) < 15000)
{
SendClientMessage(playerid, 0xFFFFFF, "You need 15.000$ to enter in the Rhino.");
RemovePlayerFromVehicle(playerid);
}
else if(GetPlayerMoney(playerid) > 15000)
{
GivePlayerMoney(playerid,-15000);
SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Rhino.");
}
}
return 1;
}
you forgot the ";"