10.04.2011, 15:08
I have annother problem today :P but now is for rent bikes :S
OK now, that's all work, but, when i get on bike, it write "Upisite '/iznajmi 3' ~n~kako biste iznajmili ~n~ovaj bicikl za 10$!" but its removing me from bike :SSS why i aint type RemovePlayerFromVehicle(playerid); so why is removing me from vehicle?
pawn Код:
new rentbic;
public OnGameModeInit()
{
rentbic = AddStaticVehicle(510,1625.92614746,-1896.12182617,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1623.30200195,-1895.91040039,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1620.91601562,-1895.90014648,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1618.71215820,-1895.67626953,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1616.32617188,-1895.66577148,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1614.12231445,-1895.44189453,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1611.93383789,-1895.41577148,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1626.01855469,-1892.11779785,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1623.43530273,-1892.12280273,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1621.04956055,-1892.11279297,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1618.86059570,-1892.08666992,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1616.47460938,-1892.07592773,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1614.28637695,-1892.04956055,13.24651337,0.00000000,-1,-1); //Mountain Bike
rentbic = AddStaticVehicle(510,1612.09790039,-1892.02319336,13.24651337,0.00000000,-1,-1); //Mountain Bike
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
for(new i;i<MAX_VEHICLES;i++)
{
if(i == rentbic)
{
if(GetPVarInt(rentbic, "BicRentan") == 0)
{
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "Upisite '/iznajmi 3' ~n~kako biste iznajmili ~n~ovaj bicikl za 10$!", 5000, 4);
}
}
}
}
return 1;
}