Ha van lock Systemed akk beülsz és /lock ha nincs akk
[pawn]mod elejére: new vmi;
ezt az On Game Mode Init alá
vmi = AddStaticVehicle(562,1517.6597,-695.3589,94.4076,87.7232,0,0);
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new PlayerName[256];
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(newstate == PLAYER_STATE_DRIVER)
{
new Vehicle = GetPlayerVehicleID(playerid);
if(Vehicle == vmi)
{
if(strcmp(PlayerName,\"vki\",true))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, 0x33AA33AA, \"Ez a jármû vki tulajdona!\");
}
}
}
if(AntiFall[playerid] == true)
{
if(oldstate == PLAYER_STATE_DRIVER)
{
if(vehid[playerid] != INVALID_VEHICLE_ID)
{
PutPlayerInVehicle(playerid,vehid[playerid],0);
return 1;
}
return 1;
}
return 1;
}
return 1;
}[/pawn]