20.06.2012, 20:41
(
Последний раз редактировалось 3RoR; 21.06.2012 в 13:29.
)
///../
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); }
Код:
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); } |
if(GetVehicleModel(vehicleid) == 596 && PlayerInfo[playerid][pMember] != 1)
SendClientMessage(playerid, COLOR_GREY, "You aren't allowed to enter this vehicle!");
RemovePlayerFromVehicle(playerid);