[help]freeze - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [help]freeze (
/showthread.php?tid=161661)
[help]freeze -
keller012 - 20.07.2010
I created a car rental company.
The money goes to the vault, appears the phrase when you enter the car ... so you have a problem
the car does not freeze as the guy goes into it.
The car has to stay frozen until the guy typing /carhire, if not he will not pay to use it
Код:
if(newcar >= 372 && newcar <= 377)
{
if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~w~You can rent this car ~n~ Cost: $ 500 ~g~ ~n~ ~w~ For Rent type ~g~ / carhire ~w~~n~ enter to exit ~r~ /exit");
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, string, 5000, 3);
}
}
this is where I tried to do
it's just not working
someone to help please?
Re: [help]freeze -
DJDhan - 20.07.2010
And what do you have this code under?
Re: [help]freeze -
selten98 - 20.07.2010
pawn Код:
new Float:x,Float:y,Float:z;
if(newcar >= 372 && newcar <= 377)
{
if (HireCar[playerid] != newcar)
{
format(string, sizeof(string), "~w~You can rent this car ~n~ Cost: $ 500 ~g~ ~n~ ~w~ For Rent type ~g~ / carhire ~w~~n~ enter to exit ~r~ /exit");
GetPlayerPos(playerid,x,y,z);
SetTimer("RELOAD",1,1); {
SetPlayerPos(playerid,x,y,z);
}
GameTextForPlayer(playerid, string, 5000, 3);
}
}
Maybe this will work (dunno for sure)
Re: [help]freeze -
keller012 - 20.07.2010
did it so that you step selten98
but when this happens get in the car:
Re: [help]freeze -
Guerek - 21.07.2010
I have the same problem that your
will someone who can help?