Sziasztok találtam egy lock/unlock fs-t.
#include <a_samp>
#include <zcmd>
#define COLOR_RED 0xff0000AA
CMD:lock(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, \"Nem vagy kocsiban!\");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_RED,\"Csak a sofõr tudja bezárni az ajtókat!\");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(i != playerid) SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1);
}
SendClientMessage(playerid,COLOR_RED, \"Jármû bezárva!\");
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
return 1;
}
CMD:unlock(playerid, params[])
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED, \"Nem ülsz a sofõr ülésen.\");
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return SendClientMessage(playerid,COLOR_RED,\"Csak a sofõr tudja bezárni az ajtókat!\");
for(new i=0;i<MAX_PLAYERS;i++)
{
SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 0);
}
SendClientMessage(playerid,COLOR_RED, \"Kocsi nyitva!\");
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid,pX,pY,pZ);
PlayerPlaySound(playerid,1056,pX,pY,pZ);
return 1;
}