SA-MP Forums Archive
Player get frozed when enter in a faction car [problem] - 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: Player get frozed when enter in a faction car [problem] (/showthread.php?tid=71843)



Player get frozed when enter in a faction car [problem] - sandsnake - 04.04.2009

Hello again now i have a problem with faction cars when a player not in that faction when enters a faction car the player got frozed...
Here goes one exemple...
PawnCode
Quote:

if(IsALatinkingsCar(newcar))
{
if(PlayerInfo[playerid][pLeader] == 6||PlayerInfo[playerid][pMember] == 6) { }
else {
RemovePlayerFromVehicle(playerid);
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid, COLOR_LIGHTBLUE,"You are not affiliated with LatinKings members.");}
}

And with togleplayercontrollable the player got frozed please help me to remove this froze


Re: Player get frozed when enter in a faction car [problem] - Weed_ - 04.04.2009

You want them to be frozen ? Then
pawn Код:
TogglePlayerControllable(playerid, 0);
If not, remove
pawn Код:
TogglePlayerControllable(playerid, 1);



Re: Player get frozed when enter in a faction car [problem] - sandsnake - 04.04.2009

i want to unfroze them because it got removed from the car and gets frozed:9


Re: Player get frozed when enter in a faction car [problem] - Weed_ - 04.04.2009

Remove
pawn Код:
TogglePlayerControllable



Re: Player get frozed when enter in a faction car [problem] - MenaceX^ - 04.04.2009

It should unfreeze, maybe a bug while leaving the car.
Set a quick timer.


Re: Player get frozed when enter in a faction car [problem] - sandsnake - 04.04.2009

Gets frozed because of my engine system with /start /stop

keeping frozed


Re: Player get frozed when enter in a faction car [problem] - MenaceX^ - 04.04.2009

pawn Код:
//Set that timer inside the command
SetTimerEx("quickunfreeze",500,0,playerid);



forward quickunfreeze(playerid);
public quickunfreeze(playerid)
  TogglePlayerControllable(playerid,1);



Re: Player get frozed when enter in a faction car [problem] - sandsnake - 04.04.2009

Make me a exemple with the thing because i keep on error>error 035: argument type mismatch (argument 4)
PawnCode:
Quote:

if(IsACopCar(newcar))
{
if(IsACop(playerid)) { }
else { RemovePlayerFromVehicle(playerid);
SetTimerEx("quickunfreeze",500,0,playerid);}
}

Make the thing with this exemple please


Re: Player get frozed when enter in a faction car [problem] - Independence - 04.04.2009

Try to remove whole of TogglePlayerControllable in your script, including your fs and scriptfiles.
This result will be no more frozen in any case.

Dont forget to make backup for your script before you follow my advice.

Ok, seriously. I think the problem is not in "if(IsALatinkingsCar(newcar))"
It should be somewhere else in your script.


Re: Player get frozed when enter in a faction car [problem] - MenaceX^ - 04.04.2009

Quote:
Originally Posted by sandsnake
Make me a exemple with the thing because i keep on error>error 035: argument type mismatch (argument 4)
PawnCode:
Quote:

if(IsACopCar(newcar))
{
if(IsACop(playerid)) { }
else { RemovePlayerFromVehicle(playerid);
SetTimerEx("quickunfreeze",500,0,playerid);}
}

Make the thing with this exemple please
My bad.
pawn Код:
SetTimerEx("quickunfreeze",500,0,"d",playerid); }