HELP !!!
#1

///../
Reply
#2

Not quite sure, but remove the floats, GetPlayerPos, and SetPlayerPos.

Then just place ClearAnimations(playerid); under GameTextForPlayer. Pretty sure using ClearAnimations prevents you from getting into the vehicle. Plus, people with hacks (won't name them) might be able to prevent the SetPlayerPos.
Reply
#3

thank's about that but how to set when a car is locked only the LSPDS(ID 1) can only Enter the car ?
this script isn't working.
Reply
#4

What is the LSPD variable, or the variable value?

Is LSPD value 1 of PlayerInfo[playerid][pMember]?

If it is, it should work.
Reply
#5

yes it is!
Reply
#6

Код:
if(PlayerInfo[playerid][pMember] != 1)
{
       ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
       SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
       new Float:cx, Float:cy, Float:cz;
       GetPlayerPos(playerid, cx, cy, cz);
       SetPlayerPos(playerid, cx,  cy, cz);
       SendClientMessage(playerid,COLOR_GREY,"This vehicle is reserved for this Member 1 only");
       ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
}
Reply
#7

Quote:
Originally Posted by Blunt
Посмотреть сообщение
Код:
if(PlayerInfo[playerid][pMember] != 1)
{
       ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
       SetVehicleParamsForPlayer(vehicleid,playerid,0,1);
       new Float:cx, Float:cy, Float:cz;
       GetPlayerPos(playerid, cx, cy, cz);
       SetPlayerPos(playerid, cx,  cy, cz);
       SendClientMessage(playerid,COLOR_GREY,"This vehicle is reserved for this Member 1 only");
       ApplyAnimationEx(playerid, "ped", "CAR_doorlocked_LHS", 3.0, 0, 0, 0, 0, 0);
}
Isn't working this y tried...
Reply
#8

Try using the following:
pawn Код:
if(GetVehicleModel(vehicleid) == 596 && PlayerInfo[playerid][pMember] != 1)
SendClientMessage(playerid, COLOR_GREY, "You aren't allowed to enter this vehicle!");
and then

pawn Код:
RemovePlayerFromVehicle(playerid);
This way, instead of not letting them enter the vehicle - they will enter the vehicle but will automatically be ejected out. A possible solution I guess?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)