Player get frozed when enter in a faction car [problem]
#1

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
Reply
#2

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

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

Remove
pawn Код:
TogglePlayerControllable
Reply
#5

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

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

keeping frozed
Reply
#7

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



forward quickunfreeze(playerid);
public quickunfreeze(playerid)
  TogglePlayerControllable(playerid,1);
Reply
#8

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
Reply
#9

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.
Reply
#10

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); }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)